X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Ffreenet%2Fiindexrequester.h;h=8744dfd44a75c2e85331fcd486e4ee7f136abfeb;hb=bae54a5dae027ad0a6b0126ec9eeecd3bd2739eb;hp=e3845e366e76d44845c979c50659e14ce90c1499;hpb=befd91205eff729a182f66de15374a577a8718f7;p=fms.git diff --git a/include/freenet/iindexrequester.h b/include/freenet/iindexrequester.h index e3845e3..8744dfd 100644 --- a/include/freenet/iindexrequester.h +++ b/include/freenet/iindexrequester.h @@ -71,20 +71,20 @@ void IIndexRequester::FCPConnected() // make sure variables have been initialized by the derived class if(m_maxrequests==-1) { - m_log->WriteLog(LogFile::LOGLEVEL_ERROR,"IIndexRequester::FCPConnected maxrequests not initialized correctly!"); + m_log->WriteLog(LogFile::LOGLEVEL_FATAL,"IIndexRequester::FCPConnected maxrequests not initialized correctly!"); } if(m_fcpuniquename=="") { - m_log->WriteLog(LogFile::LOGLEVEL_ERROR,"IIndexRequester::FCPConnected fcpuniquename not initialized correctly!"); + m_log->WriteLog(LogFile::LOGLEVEL_FATAL,"IIndexRequester::FCPConnected fcpuniquename not initialized correctly!"); } if(m_fcpuniquename.find("|")!=std::string::npos) { - m_log->WriteLog(LogFile::LOGLEVEL_ERROR,"IIndexRequester::FCPConnected fcpuniquename contains | character! This is not a valid character!"); + m_log->WriteLog(LogFile::LOGLEVEL_FATAL,"IIndexRequester::FCPConnected fcpuniquename contains | character! This is not a valid character!"); } + m_lastreceived.SetToGMTime(); m_requesting.clear(); PopulateIDList(); - m_lastreceived.SetToGMTime(); m_lastpopulated.SetToGMTime(); } @@ -189,7 +189,7 @@ void IIndexRequester::Process() // if we haven't received any messages to this object in 10 minutes, clear the requests and repopulate id list if(m_ids.size()>0 && m_lastreceived<(now-(1.0/144.0))) { - m_log->WriteLog(LogFile::LOGLEVEL_ERROR,"IIndexRequester::Process() Object has not received any messages in 10 minutes. Restarting requests."); + m_log->WriteLog(LogFile::LOGLEVEL_ERROR,"IIndexRequester::Process "+m_fcpuniquename+" Object has not received any messages in 10 minutes. Restarting requests."); FCPConnected(); }