added logs for tracing last sync time

pull/40/head
Nestal Wan 2012-07-19 23:48:01 +08:00
parent 28e4956af9
commit 57c431dd83
1 changed files with 7 additions and 2 deletions

View File

@ -273,9 +273,14 @@ void State::Sync( http::Agent *http, const http::Header& auth )
// need to check if this introduces a new problem
DateTime last_sync_time = m_last_sync;
m_res.Root()->Sync( http, auth, last_sync_time ) ;
if (last_sync_time == m_last_sync) {
if ( last_sync_time == m_last_sync )
{
Trace( "nothing changed? %1%", m_last_sync ) ;
m_last_sync = DateTime::Now();
} else {
}
else
{
Trace( "updating last sync? %1%", last_sync_time ) ;
m_last_sync = last_sync_time;
}
}