From c9dba40393cb6627327693cc0c1ca0b68975b9eb Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Wed, 27 Apr 2016 11:40:53 -0700 Subject: [PATCH] InfluxDBStore: when Close is called and flush fails, log instead of returning otherwise we potentially do not close the store. --- influxdb_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb_store.go b/influxdb_store.go index 0dc37756..3a85cab4 100644 --- a/influxdb_store.go +++ b/influxdb_store.go @@ -448,7 +448,7 @@ func (in *InfluxDBStore) Traces(opts TracesOpts) ([]*Trace, error) { func (in *InfluxDBStore) Close() error { close(in.flusherStopChan) if err := in.flush(); err != nil { - return err + in.log.Println("Flush:", err) } return in.server.Close() }