Skip to content

Commit

Permalink
Add a prefix to logonce logger output
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Sep 3, 2018
1 parent d493604 commit 3ed340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logonce/logonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ed340c

Please sign in to comment.