Log: Skip argument packing when below filter level

This commit is contained in:
Stenzek 2024-01-13 14:47:46 +10:00
parent 5f9eef585f
commit 03d6500250
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -76,6 +76,7 @@ template<typename... T>
ALWAYS_INLINE static void WriteFmt(const char* channelName, const char* functionName, LOGLEVEL level,
fmt::format_string<T...> fmt, T&&... args)
{
if (level <= GetLogLevel())
return WriteFmtArgs(channelName, functionName, level, fmt, fmt::make_format_args(args...));
}
} // namespace Log