Changeset 14569 for trunk/FACT++
- Timestamp:
- 11/06/12 10:10:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r14438 r14569 78 78 79 79 #include "Description.h" 80 #include "DimNetwork.h"80 //#include "DimNetwork.h" 81 81 82 82 #ifdef HAVE_FITS … … 472 472 if (server != "DIS_DNS") 473 473 { 474 for (auto it=fServerDescriptionsList.begin(); it != fServerDescriptionsList.end(); it++) 475 if ((*it)->server == server) 476 { 477 if (fDebugIsOn) 478 { 479 ostringstream str; 480 str << "Already got description for server " << server << ". Ignoring." << endl; 481 Debug(str.str()); 482 return; 483 } 484 } 474 485 DimDescriptions* d = new DimDescriptions(server); 475 486 d->SetCallbackDescriptions(bind(&DataLogger::HandleDescriptions, this, d)); … … 985 996 // Debug(str.str()); 986 997 // } 998 987 999 if ((GetCurrentState() == kSM_Ready) && (!fAutoStarted) && fShouldAutoStart) 988 1000 { … … 1014 1026 break; 1015 1027 } 1028 1029 if (!found && fDebugIsOn) 1030 { 1031 ostringstream str; 1032 str << "Service " << evt.GetName() << " not found in subscriptions" << endl; 1033 Debug(str.str()); 1034 } 1016 1035 if (!found) 1017 1036 return GetCurrentState(); 1018 1037 1038 1039 if (evt.GetSize() == 0 && fDebugIsOn) 1040 { 1041 ostringstream str; 1042 str << "Got 0 size for " << evt.GetName() << endl; 1043 Debug(str.str()); 1044 } 1019 1045 if (evt.GetSize() == 0) 1020 1046 return GetCurrentState(); 1047 1048 if (evt.GetFormat() == "" && fDebugIsOn) 1049 { 1050 ostringstream str; 1051 str << "Got no format for " << evt.GetName() << endl; 1052 Debug(str.str()); 1053 } 1021 1054 if (evt.GetFormat() == "") 1022 1055 return GetCurrentState(); … … 1208 1241 const Time cTime(evt.GetTime()); 1209 1242 fQuality = evt.GetQoS(); 1210 //I had strange surprises with the quality from Dim before. Double check that the value is indeed valid.1243 /* //I had strange surprises with the quality from Dim before. Double check that the value is indeed valid. 1211 1244 if (fQuality != kMessage && 1212 1245 fQuality != kInfo && … … 1217 1250 fQuality != kDebug) 1218 1251 fQuality = kError; 1252 */ 1219 1253 fMjD = cTime.Mjd() ? cTime.Mjd()-40587 : 0; 1220 1254
Note:
See TracChangeset
for help on using the changeset viewer.