Changeset 14172 for trunk/FACT++
- Timestamp:
- 06/13/12 15:34:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r14009 r14172 1271 1271 const Time cTime(I->getTimestamp(), I->getTimestampMillisecs()*1000); 1272 1272 fQuality = I->getQuality(); 1273 //I had strange surprises with the quality from Dim before. Double check that the value is indeed valid. 1274 if (fQuality != kMessage && 1275 fQuality != kInfo && 1276 fQuality != kWarn && 1277 fQuality != kError && 1278 fQuality != kFatal && 1279 fQuality != kComment && 1280 fQuality != kDebug) 1281 fQuality = kError; 1273 1282 fMjD = cTime.Mjd() ? cTime.Mjd()-40587 : 0; 1274 1283 … … 1411 1420 if (fNightlyLogFile.is_open()) 1412 1421 { 1413 MessageImp(fNightlyLogFile).Write(cTime, msg.str().c_str(), kMessage);//fQuality); Silently ignore QoS in case of messages1422 MessageImp(fNightlyLogFile).Write(cTime, msg.str().c_str(), fQuality); 1414 1423 if (!CheckForOfstreamError(fNightlyLogFile, true)) 1415 1424 return; … … 1417 1426 if (targetRunFile && targetRunFile->is_open()) 1418 1427 { 1419 MessageImp(*targetRunFile).Write(cTime, msg.str().c_str(), kMessage);//fQuality);1428 MessageImp(*targetRunFile).Write(cTime, msg.str().c_str(), fQuality); 1420 1429 if (!CheckForOfstreamError(*targetRunFile, false)) 1421 1430 return;
Note:
See TracChangeset
for help on using the changeset viewer.