summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/al/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/al/log.h b/include/al/log.h
index f3c61b1..7fd72dd 100644
--- a/include/al/log.h
+++ b/include/al/log.h
@@ -37,7 +37,7 @@ s32 _al_logv(u8 level, const char *section, const char *name, const s32 line, co
#define log_info(fmt, ...) al_log(AL_LOG_INFO, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__)
#define log_warn(fmt, ...) al_log(AL_LOG_WARN, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__)
#define log_error(fmt, ...) al_log(AL_LOG_ERROR, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__)
-#ifdef AL_DEBUG
+#if defined AL_DEBUG || defined AL_LOG_ENABLE_TRACE
#define log_debug(fmt, ...) al_log(AL_LOG_DEBUG, AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__)
#else
#define log_debug(fmt, ...) al_log_nop(AL_LOG_SECTION_NAME, fmt, ##__VA_ARGS__)