Skip logging when logfile is unset (#6648)

This commit is contained in:
Daniel Nelson 2019-11-11 17:03:03 -08:00 committed by GitHub
parent 58df6f6c94
commit 8cba5941be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package logger
import (
"errors"
"io"
"log"
"os"
@ -112,7 +111,6 @@ func (t *telegrafLogCreator) CreateLogger(config LogConfig) (io.Writer, error) {
writer = defaultWriter
}
} else {
log.Print("E! Empty logfile, using stderr")
writer = defaultWriter
}
case LogTargetStderr, "":