Always post debug logs to log handlers.

This commit is contained in:
David Reid
2022-01-02 13:12:07 +10:00
parent eab1cc4357
commit ce0d8f8491
-9
View File
@@ -12877,15 +12877,6 @@ MA_API ma_result ma_log_post(ma_log* pLog, ma_uint32 level, const char* pMessage
return MA_INVALID_ARGS;
}
/* If it's a debug log, ignore it unless MA_DEBUG_OUTPUT is enabled. */
#if !defined(MA_DEBUG_OUTPUT)
{
if (level == MA_LOG_LEVEL_DEBUG) {
return MA_INVALID_ARGS; /* Don't post debug messages if debug output is disabled. */
}
}
#endif
ma_log_lock(pLog);
{
ma_uint32 iLog;