debug: improve consistency of log messages about up to date/processed files

This commit is contained in:
Jean-Francois Dockes 2011-06-04 10:18:46 +02:00
parent 91f277ec26
commit b6c73ecdeb
2 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ FsIndexer::processone(const std::string &fn, const struct stat *stp,
string udi;
make_udi(fn, "", udi);
if (!m_db->needUpdate(udi, sig)) {
LOGDEB(("processone: up to date: %s\n", fn.c_str()));
LOGDEB0(("processone: up to date: %s\n", fn.c_str()));
if (m_updater) {
// Status bar update, abort request etc.
m_updater->status.fn = fn;

View File

@ -1246,8 +1246,8 @@ bool Db::needUpdate(const string &udi, const string& sig)
osig.c_str(), sig.c_str()));
// Compare new/old sig
if (sig != osig) {
LOGDEB(("Db::needUpdate:yes: olsig [%s] new [%s]\n",
osig.c_str(), sig.c_str()));
LOGDEB(("Db::needUpdate:yes: olsig [%s] new [%s] [%s]\n",
osig.c_str(), sig.c_str(), uniterm.c_str()));
// Db is not up to date. Let's index the file
return true;
}