mirror of
https://github.com/simon987/feed_archiver.git
synced 2025-04-10 06:06:44 +00:00
Fix docker build, tweaks logger
This commit is contained in:
parent
2b25f2afe0
commit
632f05c9ea
@ -2,7 +2,7 @@
|
|||||||
FROM golang:1.15 as go_build
|
FROM golang:1.15 as go_build
|
||||||
WORKDIR /build/
|
WORKDIR /build/
|
||||||
|
|
||||||
COPY main.go .
|
COPY *.go ./
|
||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
RUN GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -o feed_archiver .
|
RUN GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -o feed_archiver .
|
||||||
RUN strip feed_archiver
|
RUN strip feed_archiver
|
||||||
|
@ -58,7 +58,7 @@ func (m *Monitoring) flushQueue(bp *influx.BatchPoints) {
|
|||||||
|
|
||||||
logrus.WithFields(logrus.Fields{
|
logrus.WithFields(logrus.Fields{
|
||||||
"size": len((*bp).Points()),
|
"size": len((*bp).Points()),
|
||||||
}).Debug("Wrote points")
|
}).Info("Wrote points")
|
||||||
|
|
||||||
*bp, _ = influx.NewBatchPoints(influx.BatchPointsConfig{
|
*bp, _ = influx.NewBatchPoints(influx.BatchPointsConfig{
|
||||||
Database: m.database,
|
Database: m.database,
|
||||||
|
2
main.go
2
main.go
@ -117,7 +117,7 @@ func main() {
|
|||||||
|
|
||||||
archiverCtx.tables = map[string]bool{}
|
archiverCtx.tables = map[string]bool{}
|
||||||
|
|
||||||
logrus.SetLevel(logrus.DebugLevel)
|
logrus.SetLevel(logrus.InfoLevel)
|
||||||
|
|
||||||
connPoolConfig := pgx.ConnPoolConfig{
|
connPoolConfig := pgx.ConnPoolConfig{
|
||||||
ConnConfig: pgx.ConnConfig{
|
ConnConfig: pgx.ConnConfig{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user