summaryrefslogtreecommitdiff
path: root/crawler/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/log.go')
-rw-r--r--crawler/log.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/crawler/log.go b/crawler/log.go
index 0cd681d..6288a29 100644
--- a/crawler/log.go
+++ b/crawler/log.go
@@ -1,28 +1,9 @@
package main
import (
- "flag"
-
log "github.com/Sirupsen/logrus"
)
-// global config, gets overwritten by main
-var _conf Config
-
-func init() {
- // we need to parse the config because of log level setting
- configFile := flag.String("config", "", "path to config file")
- flag.Parse()
-
- _conf.parseConfig(*configFile)
-
- if _conf.Debug {
- log.SetLevel(log.DebugLevel)
- } else {
- log.SetLevel(log.WarnLevel)
- }
-}
-
func Fatal(err error, msg string) {
if err != nil {
log.WithFields(