diff --git a/app/src/main/cpp/skyline/common/logger.h b/app/src/main/cpp/skyline/common/logger.h index aadfc892..433e7f8f 100644 --- a/app/src/main/cpp/skyline/common/logger.h +++ b/app/src/main/cpp/skyline/common/logger.h @@ -134,38 +134,50 @@ namespace skyline { template static void Debug(FunctionString formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Debug <= configLevel) Write(LogLevel::Debug, util::Format(*formatString, args...)); + #endif } template static void Debug(FunctionString formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Debug <= configLevel) Write(LogLevel::Debug, util::Format(*formatString, args...)); + #endif } template static void DebugNoPrefix(S formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Debug <= configLevel) Write(LogLevel::Debug, util::Format(formatString, args...)); + #endif } template static void Verbose(FunctionString formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Verbose <= configLevel) Write(LogLevel::Verbose, util::Format(*formatString, args...)); + #endif } template static void Verbose(FunctionString formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Verbose <= configLevel) Write(LogLevel::Verbose, util::Format(*formatString, args...)); + #endif } template static void VerboseNoPrefix(S formatString, Args &&... args) { + #ifndef NDEBUG if (LogLevel::Verbose <= configLevel) Write(LogLevel::Verbose, util::Format(formatString, args...)); + #endif } }; }