0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

UI: Always print debug log to stdout if Debug build

Makes it easier to debug certain issues when building on non-Windows
machines.
This commit is contained in:
Jim 2023-03-25 22:47:52 -07:00
parent 9b270c38e8
commit 39afa665a1

View File

@ -410,8 +410,12 @@ static void do_log(int log_level, const char *msg, va_list args, void *param)
}
#endif
#if !defined(_WIN32) && defined(_DEBUG)
def_log_handler(log_level, msg, args2, nullptr);
#endif
if (log_level <= LOG_INFO || log_verbose) {
#ifndef _WIN32
#if !defined(_WIN32) && !defined(_DEBUG)
def_log_handler(log_level, msg, args2, nullptr);
#endif
if (!too_many_repeated_entries(logFile, msg, str))