Commit ffda147d authored by Jonas Stienen's avatar Jonas Stienen

Adding trace log level in switching

parent b0d6ec85
......@@ -194,12 +194,13 @@ int main( int argc, char* argv[] )
oArgs[ "debug" ][ "loglevel" ] = true;
pServer->GetCoreInstance()->CallModule( "VACore", oArgs, oReturn );
int iCurrentLogLevel = oReturn[ "debug" ][ "loglevel" ];
int iNewLogLevel = int( iCurrentLogLevel + 1 ) % 5;
cout << "Setting log level to: " << iNewLogLevel << endl;
int iNewLogLevel = int( iCurrentLogLevel + 1 ) % 6;
oNewArgs[ "command" ] = "set";
oNewArgs[ "debug" ] = CVAStruct();
oNewArgs[ "debug" ][ "loglevel" ] = iNewLogLevel;
pServer->GetCoreInstance()->CallModule( "VACore", oNewArgs, oReturn );
cout << "Switched to log level: " << IVACore::GetLogLevelStr( iNewLogLevel ) << endl;
}
if( ( char ) c == 'r' )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment