[v2] Fix logging in prod builds. Fixes #983

This commit is contained in:
Lea\Anthony
2021-12-01 19:39:00 +11:00
parent 7904d0aadc
commit 1cd2645b87

View File

@@ -81,6 +81,9 @@ func CreateApp(appoptions *options.App) (*App, error) {
appFrontend := desktop.NewFrontend(ctx, appoptions, myLogger, appBindings, messageDispatcher)
eventHandler.AddFrontend(appFrontend)
// Attach logger to context
ctx = context.WithValue(ctx, "logger", myLogger)
result := &App{
ctx: ctx,
frontend: appFrontend,