Add a prefix to logonce logger output

This commit is contained in:
Matt Joiner 2018-09-03 11:48:31 +10:00
parent d493604adc
commit 3ed340c0e0
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func init() {
// This should emulate the default logger in the log package where // This should emulate the default logger in the log package where
// possible. No time flag so that messages don't differ by time. Code // possible. No time flag so that messages don't differ by time. Code
// debug information is useful. // debug information is useful.
Stderr = log.New(Writer(os.Stderr), "", log.Lshortfile) Stderr = log.New(Writer(os.Stderr), "logonce: ", log.Lshortfile)
} }
type writer struct { type writer struct {