mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 21:15:35 +03:00
* improve logging
This commit is contained in:
parent
3a0f608402
commit
0f28a989e9
2 changed files with 2 additions and 0 deletions
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 a new issue