summaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log.go')
-rw-r--r--log.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/log.go b/log.go
index 137590e..47b27c4 100644
--- a/log.go
+++ b/log.go
@@ -4,7 +4,6 @@ import (
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
"go/types"
- "os"
)
type logger types.Nil
@@ -37,8 +36,7 @@ func setFormatter() {
func setLevel() {
level, err := log.ParseLevel(viper.GetStringMap("system")["loglevel"].(string))
if err != nil {
- log.Fatalf("Error while parsing log level, %s", err)
- os.Exit(1)
+ log.Fatalf("Error parsing log level, %s", err)
}
log.SetLevel(level)
}