mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-29 01:45:42 -04:00
Log: Skip argument packing when below filter level
This commit is contained in:
parent
5f9eef585f
commit
03d6500250
@ -76,7 +76,8 @@ template<typename... T>
|
||||
ALWAYS_INLINE static void WriteFmt(const char* channelName, const char* functionName, LOGLEVEL level,
|
||||
fmt::format_string<T...> fmt, T&&... args)
|
||||
{
|
||||
return WriteFmtArgs(channelName, functionName, level, fmt, fmt::make_format_args(args...));
|
||||
if (level <= GetLogLevel())
|
||||
return WriteFmtArgs(channelName, functionName, level, fmt, fmt::make_format_args(args...));
|
||||
}
|
||||
} // namespace Log
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user