Skip to content

Commit

Permalink
Skip logging when logfile is unset (#6648)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Nov 12, 2019
1 parent 58df6f6 commit 8cba594
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package logger

import (
"errors"

"io"
"log"
"os"
Expand Down Expand Up @@ -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, "":
Expand Down

0 comments on commit 8cba594

Please sign in to comment.