From 57c431dd83574486a762479b9ff26a56a49f8787 Mon Sep 17 00:00:00 2001 From: Nestal Wan Date: Thu, 19 Jul 2012 23:48:01 +0800 Subject: [PATCH] added logs for tracing last sync time --- libgrive/src/drive/State.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libgrive/src/drive/State.cc b/libgrive/src/drive/State.cc index 280c071..f024818 100644 --- a/libgrive/src/drive/State.cc +++ b/libgrive/src/drive/State.cc @@ -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; } }