Commit a2b0e89
fix(v3/webview2): use log instead of fmt for error and stack trace output (#5453)
On Windows, especially in production applications started outside of a
terminal, fmt.Println / fmt.Printf output is often not visible because
there is no attached console, so error messages and stack traces from
the WebView2 global error handler are lost. Routing them through the
log package ensures they reach the standard logger destination.
Ports wailsapp/go-webview2#35 to the vendored webview2 package.
Co-authored-by: Andrey Pshenkin <andrey.pshenkin@gmail.com>1 parent b3719f5 commit a2b0e89
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments