Skip to content

WebUiScreen: Fix duplicate javascript console log messages - #243

Merged
chenxiaolong merged 1 commit into
masterfrom
console-log
Sep 13, 2026
Merged

WebUiScreen: Fix duplicate javascript console log messages#243
chenxiaolong merged 1 commit into
masterfrom
console-log

Conversation

@chenxiaolong

Copy link
Copy Markdown
Owner

Chromium sends high severity console messages to both logcat and stderr by default. Since gomobile hijacks stderr to send its output to logcat, this results in duplicate messages.

This commit works around the problem by using a WebChromeClient to consume the messages and log them ourself.

Chromium sends high severity console messages to both logcat and stderr
by default. Since gomobile hijacks stderr to send its output to logcat,
this results in duplicate messages.

This commit works around the problem by using a WebChromeClient to
consume the messages and log them ourself.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Sep 13, 2026
chenxiaolong added a commit that referenced this pull request Sep 13, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong
chenxiaolong merged commit 66b7f7b into master Sep 13, 2026
1 check passed
@chenxiaolong
chenxiaolong deleted the console-log branch September 13, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant