1
0
Fork 0

Allow the windbg logger to be overridden

This commit is contained in:
Robbert van der Helm 2023-02-28 14:04:53 +01:00
parent 99223ed1c8
commit 6ef0092dca

View file

@ -117,7 +117,9 @@ pub fn setup_logger() {
let nih_log_env_str = nih_log_env.as_deref().unwrap_or(""); let nih_log_env_str = nih_log_env.as_deref().unwrap_or("");
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
if nih_log_env_str.eq_ignore_ascii_case("windbg") || win_dbg_logger::is_debugger_present() { if nih_log_env_str.eq_ignore_ascii_case("windbg")
|| (nih_log_env_str.is_empty() && win_dbg_logger::is_debugger_present())
{
win_dbg_logger::init(); win_dbg_logger::init();
log_panics(); log_panics();
return; return;