mirror of
https://github.com/fluffle/goirc
synced 2025-06-06 14:53:19 +00:00
Don't change the depth of golog's default logger. Not cool, man!
This commit is contained in:
parent
97dedfdf5e
commit
4396b459a2
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
// Just import this package alongside goirc/client and call
|
// Just import this package alongside goirc/client and call
|
||||||
// golog.Init() in your main() to set things up.
|
// golog.Init() in your main() to set things up.
|
||||||
func Init() {
|
func Init() {
|
||||||
l := log.InitFromFlags()
|
l := log.NewFromFlags()
|
||||||
l.SetDepth(1)
|
l.SetDepth(1)
|
||||||
logging.SetLogger(l)
|
logging.SetLogger(l)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue