use log.Fatal instead panic on config errors
This commit is contained in:
parent
2dc0f02d1c
commit
fce1b99683
7 changed files with 22 additions and 28 deletions
|
|
@ -2,6 +2,7 @@ package logging
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
|
|
@ -39,7 +40,7 @@ func NewLogger() *logrus.Logger {
|
|||
}
|
||||
l, err := logrus.ParseLevel(level)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
log.Fatal(err)
|
||||
}
|
||||
Logger.Level = l
|
||||
return Logger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue