mirror of
https://github.com/Xevion/r2park.git
synced 2025-12-08 04:08:08 -06:00
Improve log timestamp format
This commit is contained in:
2
api.go
2
api.go
@@ -100,7 +100,7 @@ func GetLocations() []Location {
|
|||||||
return cachedLocations
|
return cachedLocations
|
||||||
}
|
}
|
||||||
|
|
||||||
tryReload("")
|
tryReload()
|
||||||
log.Printf("Refetching locations (%s since refresh)", time.Now().Sub(cacheExpiry))
|
log.Printf("Refetching locations (%s since refresh)", time.Now().Sub(cacheExpiry))
|
||||||
|
|
||||||
body := "propertyNameEntered=" // Empty, so we get all locations
|
body := "propertyNameEntered=" // Empty, so we get all locations
|
||||||
|
|||||||
3
main.go
3
main.go
@@ -104,7 +104,8 @@ func Bot() {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
log.SetFormatter(&log.TextFormatter{
|
log.SetFormatter(&log.TextFormatter{
|
||||||
FullTimestamp: true,
|
TimestampFormat: "2006-01-02 15:04:05",
|
||||||
|
FullTimestamp: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
// Load environment variables
|
// Load environment variables
|
||||||
|
|||||||
Reference in New Issue
Block a user