From 3d4ec5c1169c97fad77749a52910e1e9e66f10dd Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 20 Nov 2022 18:26:24 +1300 Subject: [PATCH] Looking up logs --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 "" }