query-log-enabled not ignored in config anymore

Fixes #6629.
pull/6631/head
Jonathan A. Sternberg 2016-05-15 22:35:39 -04:00
parent 1bfc832046
commit ecacdb7d21
2 changed files with 4 additions and 4 deletions

View File

@ -15,6 +15,7 @@
- [#6604](https://github.com/influxdata/influxdb/pull/6604): Remove old cluster code
- [#6618](https://github.com/influxdata/influxdb/pull/6618): Optimize shard loading
- [#6629](https://github.com/influxdata/influxdb/issues/6629): query-log-enabled in config not ignored anymore.
## v0.13.0 [2016-05-12]

View File

@ -183,9 +183,6 @@ func NewServer(c *Config, buildInfo *BuildInfo) (*Server, error) {
s.QueryExecutor.QueryTimeout = time.Duration(c.Coordinator.QueryTimeout)
s.QueryExecutor.LogQueriesAfter = time.Duration(c.Coordinator.LogQueriesAfter)
s.QueryExecutor.MaxConcurrentQueries = c.Coordinator.MaxConcurrentQueries
if c.Data.QueryLogEnabled {
s.QueryExecutor.Logger = log.New(os.Stderr, "[query] ", log.LstdFlags)
}
// Initialize the monitor
s.Monitor.Version = s.buildInfo.Version
@ -266,7 +263,9 @@ func (s *Server) Open() error {
w := s.logOutput
s.MetaClient.SetLogOutput(w)
s.TSDBStore.SetLogOutput(w)
s.QueryExecutor.SetLogOutput(w)
if s.config.Data.QueryLogEnabled {
s.QueryExecutor.SetLogOutput(w)
}
s.PointsWriter.SetLogOutput(w)
s.Subscriber.SetLogOutput(w)
for _, svc := range s.Services {