Skip to content

Commit

Permalink
Log fatal CEF crashes to file
Browse files Browse the repository at this point in the history
CEF provides no method to reroute logging, but without FATAL logging
it is impossible to track down some crashes.
  • Loading branch information
WizardCM authored and RytoEX committed Feb 7, 2025
1 parent 663dc38 commit 4023fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obs-browser-plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void BrowserInit(void)
os_mkdir(conf_path);

CefSettings settings;
settings.log_severity = LOGSEVERITY_DISABLE;
settings.log_severity = LOGSEVERITY_FATAL;
BPtr<char> log_path = obs_module_config_path("debug.log");
BPtr<char> log_path_abs = os_get_abs_path_ptr(log_path);
CefString(&settings.log_file) = log_path_abs;
Expand Down

0 comments on commit 4023fad

Please sign in to comment.