projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d493604
)
Add a prefix to logonce logger output
author
Matt Joiner <anacrolix@gmail.com>
Mon, 3 Sep 2018 01:48:31 +0000 (11:48 +1000)
committer
Matt Joiner <anacrolix@gmail.com>
Mon, 3 Sep 2018 01:48:31 +0000 (11:48 +1000)
logonce/logonce.go
patch
|
blob
|
history
diff --git
a/logonce/logonce.go
b/logonce/logonce.go
index 2744282014f7ce477ba696a0628e3d034ca43c24..7d44edcacd677c4beda76373bee4a4b754606fd2 100644
(file)
--- 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 {