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