From 17fb9455599a721d3ffc785b65c279ea10933e7e Mon Sep 17 00:00:00 2001 From: tt2468 Date: Thu, 11 Apr 2024 23:04:11 -0700 Subject: [PATCH] browser-client: Downgrade browser console log levels 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. --- browser-client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser-client.cpp b/browser-client.cpp index d91ca7024..e74c04d5d 100644 --- a/browser-client.cpp +++ b/browser-client.cpp @@ -678,11 +678,11 @@ bool BrowserClient::OnConsoleMessage(CefRefPtr, 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: