More cleanup
This commit is contained in:
parent
d27d835539
commit
8593f98a96
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ func Get(c string, l string) zerolog.Logger {
|
||||||
Out: os.Stdout,
|
Out: os.Stdout,
|
||||||
TimeFormat: time.RFC3339,
|
TimeFormat: time.RFC3339,
|
||||||
}
|
}
|
||||||
level := zerolog.ParseLevel(l)
|
level, err := zerolog.ParseLevel(l)
|
||||||
|
if err != nil {
|
||||||
|
panic("unable to get parse level for logger")
|
||||||
|
}
|
||||||
|
|
||||||
log = zerolog.New(output).
|
log = zerolog.New(output).
|
||||||
Level(zerolog.Level(level)).
|
Level(zerolog.Level(level)).
|
||||||
|
|
Loading…
Reference in a new issue