From 3ed340c0e005cbbd4e3f42e0ff93bce9cf3d4123 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 3 Sep 2018 11:48:31 +1000 Subject: [PATCH] Add a prefix to logonce logger output --- logonce/logonce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logonce/logonce.go b/logonce/logonce.go index 27442820..7d44edca 100644 --- a/logonce/logonce.go +++ b/logonce/logonce.go @@ -18,7 +18,7 @@ func init() { // This should emulate the default logger in the log package where // possible. No time flag so that messages don't differ by time. Code // debug information is useful. - Stderr = log.New(Writer(os.Stderr), "", log.Lshortfile) + Stderr = log.New(Writer(os.Stderr), "logonce: ", log.Lshortfile) } type writer struct {