refactor: get rid of router/utils.go
most functions end up in other files in the router package, but a few land in common.
This commit is contained in:
1 parent
7a5c910cd5
commit
8bd77c0d47
11 files changed
+114
-125
No files matched your search
@@ -52,3 +52,15 @@ func SetLogLevel(levelname string) {
|
||||
}
|
||||
Log.Level = level
|
||||
}
|
||||
|
||||
func CheckFatal(e error) {
|
||||
if e != nil {
|
||||
Log.Fatal(e)
|
||||
}
|
||||
}
|
||||
|
||||
func CheckWarn(e error) {
|
||||
if e != nil {
|
||||
Log.Warnln(e)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user