switch (type)
{
case WARNING:
- logWarning("%s", text1.c_str());
- logWarning("%s", text2.c_str());
+ logWarning(text1);
+ logWarning(text2);
break;
case CRITICAL:
- logError("%s", text1.c_str());
- logError("%s", text2.c_str());
+ logError(text1);
+ logError(text2);
break;
default:
- logInfo("%s", text1.c_str());
- logInfo("%s", text2.c_str());
+ logInfo(text1);
+ logInfo(text2);
break;
}