diff options
| author | horus | 2018-05-19 00:14:43 +0200 |
|---|---|---|
| committer | horus | 2018-05-19 00:14:43 +0200 |
| commit | c12e03d791d370555ea6076c8e76c731cc47e94f (patch) | |
| tree | 784ad836901629b621af470d34c7540de7b4868a /crawler/main.go | |
| parent | 0117d808210f78a3861f9ccea3b6b4fccb8d979f (diff) | |
| download | alkobote-c12e03d791d370555ea6076c8e76c731cc47e94f.tar.gz | |
Bugfix. (crawler)
Diffstat (limited to 'crawler/main.go')
| -rw-r--r-- | crawler/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawler/main.go b/crawler/main.go index bfcd647..a58310a 100644 --- a/crawler/main.go +++ b/crawler/main.go @@ -67,7 +67,8 @@ func main() { } // prints all crawlable shops - if "true" == flag.Lookup("shops").Value.String() { + _flag := flag.Lookup("shops") + if _flag != nil && "true" == _flag.Value.String() { log.SetLevel(log.InfoLevel) for _, shop := range shops { log.WithFields( |
