Add a prefix to logonce logger output
This commit is contained in:
parent
d493604adc
commit
3ed340c0e0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue