diff options
Diffstat (limited to 'crawler/config.go')
| -rw-r--r-- | crawler/config.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crawler/config.go b/crawler/config.go index 329c41b..2eb7d03 100644 --- a/crawler/config.go +++ b/crawler/config.go @@ -1,7 +1,6 @@ package main import ( - log "github.com/Sirupsen/logrus" "github.com/spf13/viper" ) @@ -54,11 +53,7 @@ func (c *Config) parseConfig(configFile string) { // Reads the config err := viper.ReadInConfig() if err != nil { - log.WithFields( - log.Fields{ - "error": err.Error(), - }, - ).Fatal("Fatal error config file") + Fatal(err, "Config: Error parsing config file.") } c.setsConfig() |
