cwLog.cpp : Fix bug where sysStr was printed on info level logs

This commit is contained in:
kevin 2022-12-16 11:30:41 -05:00
parent 12085730a5
commit 376684e3b5

View File

@ -178,7 +178,10 @@ void cw::log::defaultFormatter( void* cbArg, logOutputCbFunc_t outFunc, void* ou
// don't print the function,file,line when this is an 'info' msg. // don't print the function,file,line when this is an 'info' msg.
if( level == kInfo_LogLevel ) if( level == kInfo_LogLevel )
{
loStr = ""; loStr = "";
syStr = "";
}
// dont' print the rc msg if this is info or debug // dont' print the rc msg if this is info or debug
if( level < kWarning_LogLevel ) if( level < kWarning_LogLevel )