logging: Don't use PrintF when not needed (#1599)

These log print don't have any verbs, so just use plain Print
This commit is contained in:
Miek Gieben
2018-03-09 20:42:27 +00:00
committed by GitHub
parent 87790dd47c
commit 27f58d8dc6
6 changed files with 8 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ func (dio *dnstapIO) newConnect() error {
// Connect connects to the dnstop endpoint.
func (dio *dnstapIO) Connect() {
if err := dio.newConnect(); err != nil {
log.Printf("[ERROR] No connection to dnstap endpoint")
log.Print("[ERROR] No connection to dnstap endpoint")
}
go dio.serve()
}
@@ -102,7 +102,7 @@ func (dio *dnstapIO) flushBuffer() {
if err := dio.newConnect(); err != nil {
return
}
log.Printf("[INFO] Reconnected to dnstap")
log.Print("[INFO] Reconnected to dnstap")
}
if err := dio.enc.flushBuffer(); err != nil {
@@ -111,7 +111,7 @@ func (dio *dnstapIO) flushBuffer() {
if err := dio.newConnect(); err != nil {
log.Printf("[ERROR] Cannot connect to dnstap: %s", err)
} else {
log.Printf("[INFO] Reconnected to dnstap")
log.Print("[INFO] Reconnected to dnstap")
}
}
}