feat(GODT-3156): add time zone info to the bridge log.

This commit is contained in:
Xavier Michelon 2024-01-05 09:30:13 +01:00
parent 9b1daa0373
commit e63afd3910
1 changed files with 7 additions and 0 deletions

View File

@ -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)
}