change printf to debug
parent
c056cf5f47
commit
eb292f7414
|
@ -219,7 +219,7 @@ func (self *ShardData) Query(querySpec *parser.QuerySpec, response chan *p.Respo
|
|||
processor = engine.NewPassthroughEngine(response, maxDeleteResults)
|
||||
} else {
|
||||
if self.ShouldAggregateLocally(querySpec) {
|
||||
fmt.Printf("creating a query engine\n")
|
||||
log.Debug("creating a query engine\n")
|
||||
processor, err = engine.NewQueryEngine(querySpec.SelectQuery(), response)
|
||||
if err != nil {
|
||||
response <- &p.Response{Type: &endStreamResponse, ErrorMessage: p.String(err.Error())}
|
||||
|
@ -229,6 +229,7 @@ func (self *ShardData) Query(querySpec *parser.QuerySpec, response chan *p.Respo
|
|||
processor.SetShardInfo(int(self.Id()), self.IsLocal)
|
||||
} else {
|
||||
maxPointsToBufferBeforeSending := 1000
|
||||
log.Debug("creating a passthrough engine\n")
|
||||
processor = engine.NewPassthroughEngine(response, maxPointsToBufferBeforeSending)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue