mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 02:50:36 +08:00
[v2] Fix logging in prod builds. Fixes #983
This commit is contained in:
parent
7904d0aadc
commit
1cd2645b87
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user