From fba85684740a0ce3b41c5d647c856ad564d270c6 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Thu, 13 Oct 2022 04:08:44 +0200 Subject: [PATCH] Other: Log message at startup --- internal/app/app.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/app/app.go b/internal/app/app.go index 50c62df4..977240a7 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -6,6 +6,7 @@ import ( "net/http/cookiejar" "os" "path/filepath" + "runtime" "github.com/Masterminds/semver/v3" "github.com/ProtonMail/proton-bridge/v2/internal/bridge" @@ -204,7 +205,14 @@ func withLogging(c *cli.Context, crashHandler *crash.Handler, locations *locatio return fmt.Errorf("could not initialize logging: %w", err) } - // TODO: Add teardown actions (clean the log directory?) + logrus. + WithField("appName", constants.FullAppName). + WithField("version", constants.Version). + WithField("revision", constants.Revision). + WithField("build", constants.BuildTime). + WithField("runtime", runtime.GOOS). + WithField("args", os.Args). + Info("Run app") return fn() }