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