Changeset 14373 for trunk


Ignore:
Timestamp:
08/14/12 12:42:44 (12 years ago)
Author:
lyard
Message:
remove MESSAGE from the service name in log and report files
File:
1 edited

Legend:

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

    r14364 r14373  
    12221222    {
    12231223        //write text header
    1224         header << sub.server << "_" << sub.service << " " << fQuality << " ";
     1224        string serviceName = (sub.service == "MESSAGE") ? "" : "_"+sub.service;
     1225        header << sub.server << serviceName << " " << fQuality << " ";
    12251226        header << evt.GetTime() << " ";
    12261227
     
    12951296        }
    12961297        ostringstream msg;
    1297         msg << sub.server << "_" << sub.service << ": " << strings[0];
     1298        string serviceName = (sub.service == "MESSAGE") ? "" : "_"+sub.service;
     1299        msg << sub.server << serviceName << ": " << strings[0];
    12981300
    12991301        if (fNightlyLogFile.is_open())
Note: See TracChangeset for help on using the changeset viewer.