influxdb: replace log.Fatal() by log.Print()
Fatal() calls os.Exit(1), which causes yanic.service to fail if database is not reachable.
This commit is contained in:
parent
550e76ae4f
commit
fd7e712282
@ -149,7 +149,7 @@ func (conn *Connection) addWorker() {
|
|||||||
log.Println("saving", len(bp.Points()), "points")
|
log.Println("saving", len(bp.Points()), "points")
|
||||||
|
|
||||||
if err = conn.client.Write(bp); err != nil {
|
if err = conn.client.Write(bp); err != nil {
|
||||||
log.Fatal(err)
|
log.Print(err)
|
||||||
}
|
}
|
||||||
writeNow = false
|
writeNow = false
|
||||||
bp = nil
|
bp = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user