diff --git a/main.go b/main.go index 6786a9d..8d9e56f 100644 --- a/main.go +++ b/main.go @@ -116,15 +116,17 @@ func ipLookup(ip string) string { return "" } + log.Printf("Looking up: %s", ip) + db, err := ip2location.OpenDB(IP2LOCATION_FILE) if err != nil { - fmt.Print(err) + log.Print(err) return "" } results, err := db.Get_all(ip) if err != nil { - fmt.Print(err) + log.Print(err) return "" }