Skip to content

Commit

Permalink
query-log-enabled not ignored in config anymore
Browse files Browse the repository at this point in the history
Fixes #6629.
  • Loading branch information
jsternberg committed May 16, 2016
1 parent 1bfc832 commit ecacdb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
7 changes: 3 additions & 4 deletions cmd/influxd/run/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ecacdb7

Please sign in to comment.