mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:40:45 +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)
|
appFrontend := desktop.NewFrontend(ctx, appoptions, myLogger, appBindings, messageDispatcher)
|
||||||
eventHandler.AddFrontend(appFrontend)
|
eventHandler.AddFrontend(appFrontend)
|
||||||
|
|
||||||
|
// Attach logger to context
|
||||||
|
ctx = context.WithValue(ctx, "logger", myLogger)
|
||||||
|
|
||||||
result := &App{
|
result := &App{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
frontend: appFrontend,
|
frontend: appFrontend,
|
||||||
|
Loading…
Reference in New Issue
Block a user