starting a bit with event manage replacements
This commit is contained in:
parent
1a41d37f20
commit
16f8262a79
@ -119,17 +119,17 @@ void EventManager::printEvent(EventMessage* message) {
|
|||||||
switch (message->getSeverity()) {
|
switch (message->getSeverity()) {
|
||||||
case severity::INFO: {
|
case severity::INFO: {
|
||||||
#if FSFW_DEBUG_INFO == 1
|
#if FSFW_DEBUG_INFO == 1
|
||||||
printUtility(sif::OutputTypes::OUT_INFO, message);
|
printUtility(sif::LogLevel::INFO, message);
|
||||||
#endif /* DEBUG_INFO_EVENT == 1 */
|
#endif /* DEBUG_INFO_EVENT == 1 */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
printUtility(sif::OutputTypes::OUT_DEBUG, message);
|
printUtility(sif::LogLevel::DEBUG, message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void EventManager::printUtility(sif::OutputTypes printType, EventMessage* message) {
|
void EventManager::printUtility(sif::LogLevel printType, EventMessage* message) {
|
||||||
const char* string = 0;
|
const char* string = 0;
|
||||||
if (printType == sif::OutputTypes::OUT_INFO) {
|
if (printType == sif::OutputTypes::OUT_INFO) {
|
||||||
string = translateObject(message->getReporter());
|
string = translateObject(message->getReporter());
|
||||||
|
@ -63,7 +63,7 @@ class EventManager : public EventManagerIF, public ExecutableObjectIF, public Sy
|
|||||||
|
|
||||||
#if FSFW_OBJ_EVENT_TRANSLATION == 1
|
#if FSFW_OBJ_EVENT_TRANSLATION == 1
|
||||||
void printEvent(EventMessage* message);
|
void printEvent(EventMessage* message);
|
||||||
void printUtility(sif::OutputTypes printType, EventMessage* message);
|
void printUtility(sif::LogLevel printType, EventMessage* message);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void lockMutex();
|
void lockMutex();
|
||||||
|
Loading…
Reference in New Issue
Block a user