aboutsummaryrefslogtreecommitdiffstats
path: root/core/logging.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-16 22:15:03 -0800
committerChris Robinson <[email protected]>2023-01-16 22:15:03 -0800
commitbb751ebc4421789219cb05ca8afa4203fb1d1ed7 (patch)
tree571d1acba76fe32da879138a11e749b7fd770b9f /core/logging.h
parent3d00147b99d4996f322ff231a7e0e7d9aff86f60 (diff)
Fix debug logging on Windows non-release buuilds
And skip logging for appropriate log levels on Windows release builds.
Diffstat (limited to 'core/logging.h')
-rw-r--r--core/logging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/logging.h b/core/logging.h
index 2853afbd..c729ef4e 100644
--- a/core/logging.h
+++ b/core/logging.h
@@ -23,7 +23,7 @@ extern FILE *gLogFile;
#endif
void al_print(LogLevel level, FILE *logfile, const char *fmt, ...);
-#if !defined(_WIN32) && !defined(__ANDROID__)
+#if (!defined(_WIN32) || defined(NDEBUG)) && !defined(__ANDROID__)
#define TRACE(...) do { \
if(gLogLevel >= LogLevel::Trace) [[unlikely]] \
al_print(LogLevel::Trace, gLogFile, __VA_ARGS__); \