Changeset 16876 for trunk/FACT++
- Timestamp:
- 06/21/13 13:38:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r16807 r16876 1507 1507 Error(err.str()); 1508 1508 } 1509 1510 bool isMessage = (sub.service == "MESSAGE"); 1509 1511 ostringstream msg; 1510 string serviceName = (sub.service == "MESSAGE") ? "" : "_"+sub.service; 1511 msg << sub.server << serviceName << ": " << strings[0]; 1512 string serviceName = isMessage ? "" : "_"+sub.service; 1513 msg << sub.server << serviceName; 1514 1515 //fix the quality of non message "messages" 1516 if (!isMessage) 1517 { 1518 msg << " (" << fQuality << ")"; 1519 fQuality = kMessage; 1520 } 1521 1522 //special case for alarm reset 1523 if (isMessage && (fQuality == kAlarm) && (strings[0] == "")) 1524 { 1525 fQuality = kInfo; 1526 strings[0] = "Alarm reset"; 1527 } 1528 msg << ": " << strings[0]; 1512 1529 1513 1530 if (fNightlyLogFile.is_open())
Note:
See TracChangeset
for help on using the changeset viewer.