diff options
| author | horus | 2018-02-16 18:30:56 +0100 |
|---|---|---|
| committer | horus | 2018-02-16 18:30:56 +0100 |
| commit | 41d4487f8cbd6e6e3124079efcfb0cbc25f0ab0a (patch) | |
| tree | 34318457e69e3165c2df82cd421cd6123299948f /crawler/config.go | |
| parent | 6ff74852ebb70aa7cc24da89390e2607bac58369 (diff) | |
| download | alkobote-41d4487f8cbd6e6e3124079efcfb0cbc25f0ab0a.tar.gz | |
Log level is now configurable. (crawler)
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() |
