diff --git a/api.go b/api.go index 9446b87..ef5a307 100644 --- a/api.go +++ b/api.go @@ -100,7 +100,7 @@ func GetLocations() []Location { return cachedLocations } - tryReload("") + tryReload() log.Printf("Refetching locations (%s since refresh)", time.Now().Sub(cacheExpiry)) body := "propertyNameEntered=" // Empty, so we get all locations diff --git a/main.go b/main.go index af72c02..976fadb 100644 --- a/main.go +++ b/main.go @@ -104,7 +104,8 @@ func Bot() { func main() { log.SetFormatter(&log.TextFormatter{ - FullTimestamp: true, + TimestampFormat: "2006-01-02 15:04:05", + FullTimestamp: true, }) // Load environment variables