debug: improve consistency of log messages about up to date/processed files
This commit is contained in:
parent
91f277ec26
commit
b6c73ecdeb
@ -346,7 +346,7 @@ FsIndexer::processone(const std::string &fn, const struct stat *stp,
|
|||||||
string udi;
|
string udi;
|
||||||
make_udi(fn, "", udi);
|
make_udi(fn, "", udi);
|
||||||
if (!m_db->needUpdate(udi, sig)) {
|
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) {
|
if (m_updater) {
|
||||||
// Status bar update, abort request etc.
|
// Status bar update, abort request etc.
|
||||||
m_updater->status.fn = fn;
|
m_updater->status.fn = fn;
|
||||||
|
|||||||
@ -1246,8 +1246,8 @@ bool Db::needUpdate(const string &udi, const string& sig)
|
|||||||
osig.c_str(), sig.c_str()));
|
osig.c_str(), sig.c_str()));
|
||||||
// Compare new/old sig
|
// Compare new/old sig
|
||||||
if (sig != osig) {
|
if (sig != osig) {
|
||||||
LOGDEB(("Db::needUpdate:yes: olsig [%s] new [%s]\n",
|
LOGDEB(("Db::needUpdate:yes: olsig [%s] new [%s] [%s]\n",
|
||||||
osig.c_str(), sig.c_str()));
|
osig.c_str(), sig.c_str(), uniterm.c_str()));
|
||||||
// Db is not up to date. Let's index the file
|
// Db is not up to date. Let's index the file
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user