diff options
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( |
