* improve logging
This commit is contained in:
parent
3a0f608402
commit
0f28a989e9
1
app.go
1
app.go
|
@ -372,6 +372,7 @@ func cleanupAlways() {
|
|||
if len(pidFileName) != 0 {
|
||||
os.Remove(pidFileName)
|
||||
}
|
||||
log.Info("Stopped")
|
||||
}
|
||||
|
||||
// command-line arguments
|
||||
|
|
|
@ -37,6 +37,7 @@ func (l *queryLog) flushLogBuffer() error {
|
|||
// flushToFile saves the specified log entries to the query log file
|
||||
func (l *queryLog) flushToFile(buffer []*logEntry) error {
|
||||
if len(buffer) == 0 {
|
||||
log.Debug("querylog: there's nothing to write to a file")
|
||||
return nil
|
||||
}
|
||||
start := time.Now()
|
||||
|
|
Loading…
Reference in New Issue