default color is magneta now for wanring
This commit is contained in:
parent
589e64fc46
commit
73bae057bd
@ -555,6 +555,11 @@ ReturnValue_t LocalDataPoolManager::handleHousekeepingMessage(
|
|||||||
case(HousekeepingMessage::GENERATE_ONE_PARAMETER_REPORT):
|
case(HousekeepingMessage::GENERATE_ONE_PARAMETER_REPORT):
|
||||||
case(HousekeepingMessage::GENERATE_ONE_DIAGNOSTICS_REPORT): {
|
case(HousekeepingMessage::GENERATE_ONE_DIAGNOSTICS_REPORT): {
|
||||||
LocalPoolDataSetBase* dataSet = HasLocalDpIFManagerAttorney::getDataSetHandle(owner, sid);
|
LocalPoolDataSetBase* dataSet = HasLocalDpIFManagerAttorney::getDataSetHandle(owner, sid);
|
||||||
|
if(dataSet == nullptr) {
|
||||||
|
printWarningOrError(sif::OutputTypes::OUT_WARNING, "handleHousekeepingMessage",
|
||||||
|
DATASET_NOT_FOUND);
|
||||||
|
return DATASET_NOT_FOUND;
|
||||||
|
}
|
||||||
if(command == HousekeepingMessage::GENERATE_ONE_PARAMETER_REPORT
|
if(command == HousekeepingMessage::GENERATE_ONE_PARAMETER_REPORT
|
||||||
and LocalPoolDataSetAttorney::isDiagnostics(*dataSet)) {
|
and LocalPoolDataSetAttorney::isDiagnostics(*dataSet)) {
|
||||||
result = WRONG_HK_PACKET_TYPE;
|
result = WRONG_HK_PACKET_TYPE;
|
||||||
|
@ -35,7 +35,7 @@ ServiceInterfaceBuffer::ServiceInterfaceBuffer(std::string setMessage,
|
|||||||
colorPrefix = sif::ANSI_COLOR_GREEN;
|
colorPrefix = sif::ANSI_COLOR_GREEN;
|
||||||
}
|
}
|
||||||
else if(setMessage.find("WARNING") != std::string::npos) {
|
else if(setMessage.find("WARNING") != std::string::npos) {
|
||||||
colorPrefix = sif::ANSI_COLOR_YELLOW;
|
colorPrefix = sif::ANSI_COLOR_MAGENTA;
|
||||||
}
|
}
|
||||||
else if(setMessage.find("ERROR") != std::string::npos) {
|
else if(setMessage.find("ERROR") != std::string::npos) {
|
||||||
colorPrefix = sif::ANSI_COLOR_RED;
|
colorPrefix = sif::ANSI_COLOR_RED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user