Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions v3/UNRELEASED_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ After processing, the content will be moved to the main changelog and this file
## Fixed
<!-- Bug fixes -->
- Fix `concurrent map read and map write` runtime fatal in `linuxSystemTray` when the tray menu is updated while the panel reads it.
- Use `log` instead of `fmt` for WebView2 error and stack trace output so messages aren't lost when the app runs without an attached console on Windows.

## Deprecated
<!-- Soon-to-be removed features -->
Expand Down
4 changes: 2 additions & 2 deletions webview2/pkg/edge/chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func globalErrorHandler(err error) {
return
}

fmt.Printf("[WebView2 Error] %v\n", err)
log.Printf("[WebView2 Error] %v\n", err)

stackBuf := make([]uintptr, 64)
stackSize := runtime.Callers(2, stackBuf)
frames := runtime.CallersFrames(stackBuf[:stackSize])

fmt.Println("\nStack trace:")
log.Printf("\nStack trace:")
stackIndex := 1
for {
frame, more := frames.Next()
Expand Down
Loading