From e63afd39108424a720f4eda0175c87c146f76a34 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Fri, 5 Jan 2024 09:30:13 +0100 Subject: [PATCH] feat(GODT-3156): add time zone info to the bridge log. --- internal/app/app.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/app/app.go b/internal/app/app.go index 8d3a3f9c..1bf590ae 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -26,6 +26,7 @@ import ( "os" "path/filepath" "runtime" + "time" "github.com/Masterminds/semver/v3" "github.com/ProtonMail/gluon/async" @@ -371,6 +372,12 @@ func withLogging(c *cli.Context, crashHandler *crash.Handler, locations *locatio WithField("SentryID", sentry.GetProtectedHostname()). 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) }