mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-11 05:06:51 +00:00
feat(GODT-3156): add time zone info to the bridge log.
This commit is contained in:
@ -26,6 +26,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/Masterminds/semver/v3"
|
"github.com/Masterminds/semver/v3"
|
||||||
"github.com/ProtonMail/gluon/async"
|
"github.com/ProtonMail/gluon/async"
|
||||||
@ -371,6 +372,12 @@ func withLogging(c *cli.Context, crashHandler *crash.Handler, locations *locatio
|
|||||||
WithField("SentryID", sentry.GetProtectedHostname()).
|
WithField("SentryID", sentry.GetProtectedHostname()).
|
||||||
Info("Run app")
|
Info("Run app")
|
||||||
|
|
||||||
|
now := time.Now()
|
||||||
|
logrus.
|
||||||
|
WithField("timeZone", now.Format("MST")).
|
||||||
|
WithField("offset", now.Format("-07:00:00")).
|
||||||
|
Info("Time zone info")
|
||||||
|
|
||||||
return fn(closer)
|
return fn(closer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user