Changeset 16876 for trunk/FACT++


Ignore:
Timestamp:
06/21/13 13:38:47 (11 years ago)
Author:
lyard
Message:
removed wrong error tags in log files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r16807 r16876  
    15071507            Error(err.str());
    15081508        }
     1509
     1510        bool isMessage = (sub.service == "MESSAGE");
    15091511        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];
    15121529
    15131530        if (fNightlyLogFile.is_open())
Note: See TracChangeset for help on using the changeset viewer.