Skip to content

Commit

Permalink
browser-client: Downgrade browser console log levels
Browse files Browse the repository at this point in the history
Throughout time, OBS has logged browser console.log errors as warnings
in the OBS log as an easy way for browser source developers to
find and fix issues with their pages. Unfortunately, this functionality
seems to be almost completely ignored by many browser source providers.
This logging does, however, clog up many OBS logs and result in
readability issues when troubleshooting unrelated problems.
  • Loading branch information
tt2468 committed Apr 12, 2024
1 parent b4f724a commit 17fb945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser-client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,11 @@ bool BrowserClient::OnConsoleMessage(CefRefPtr<CefBrowser>,
const char *code = "Info";
switch (level) {
case LOGSEVERITY_ERROR:
errorLevel = LOG_WARNING;
errorLevel = LOG_DEBUG;
code = "Error";
break;
case LOGSEVERITY_FATAL:
errorLevel = LOG_ERROR;
errorLevel = LOG_INFO;
code = "Fatal";
break;
default:
Expand Down

0 comments on commit 17fb945

Please sign in to comment.