diff --git a/main.go b/main.go index 3e2e72c..ceddc38 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,9 @@ func sendWebhook(msgText string) error { // Lookup to country! func ipLookup(ip string) string { - log.Printf("Looking up: %s", ip) + if IP2LOCATION_FILE == "" { + return "" + } db, err := ip2location.OpenDB(IP2LOCATION_FILE) if err != nil {