Log: Skip argument packing when below filter level
This commit is contained in:
parent
5f9eef585f
commit
03d6500250
|
@ -76,6 +76,7 @@ template<typename... T>
|
||||||
ALWAYS_INLINE static void WriteFmt(const char* channelName, const char* functionName, LOGLEVEL level,
|
ALWAYS_INLINE static void WriteFmt(const char* channelName, const char* functionName, LOGLEVEL level,
|
||||||
fmt::format_string<T...> fmt, T&&... args)
|
fmt::format_string<T...> fmt, T&&... args)
|
||||||
{
|
{
|
||||||
|
if (level <= GetLogLevel())
|
||||||
return WriteFmtArgs(channelName, functionName, level, fmt, fmt::make_format_args(args...));
|
return WriteFmtArgs(channelName, functionName, level, fmt, fmt::make_format_args(args...));
|
||||||
}
|
}
|
||||||
} // namespace Log
|
} // namespace Log
|
||||||
|
|
Loading…
Reference in New Issue