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[] ) ...@@ -194,12 +194,13 @@ int main( int argc, char* argv[] )
oArgs[ "debug" ][ "loglevel" ] = true; oArgs[ "debug" ][ "loglevel" ] = true;
pServer->GetCoreInstance()->CallModule( "VACore", oArgs, oReturn ); pServer->GetCoreInstance()->CallModule( "VACore", oArgs, oReturn );
int iCurrentLogLevel = oReturn[ "debug" ][ "loglevel" ]; int iCurrentLogLevel = oReturn[ "debug" ][ "loglevel" ];
int iNewLogLevel = int( iCurrentLogLevel + 1 ) % 5; int iNewLogLevel = int( iCurrentLogLevel + 1 ) % 6;
cout << "Setting log level to: " << iNewLogLevel << endl;
oNewArgs[ "command" ] = "set"; oNewArgs[ "command" ] = "set";
oNewArgs[ "debug" ] = CVAStruct(); oNewArgs[ "debug" ] = CVAStruct();
oNewArgs[ "debug" ][ "loglevel" ] = iNewLogLevel; oNewArgs[ "debug" ][ "loglevel" ] = iNewLogLevel;
pServer->GetCoreInstance()->CallModule( "VACore", oNewArgs, oReturn ); pServer->GetCoreInstance()->CallModule( "VACore", oNewArgs, oReturn );
cout << "Switched to log level: " << IVACore::GetLogLevelStr( iNewLogLevel ) << endl;
} }
if( ( char ) c == 'r' ) 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