recollindex: log the start and end wall clock

This commit is contained in:
Jean-Francois Dockes 2022-03-14 18:08:56 +01:00
parent 26c4c778a4
commit 8dacf0769a

View File

@ -761,7 +761,10 @@ int main(int argc, char *argv[])
// Log something at LOGINFO to reset the trace file. Else at level // Log something at LOGINFO to reset the trace file. Else at level
// 3 it's not even truncated if all docs are up to date. // 3 it's not even truncated if all docs are up to date.
LOGINFO("recollindex: starting up\n"); {
time_t tt = time(nullptr);
LOGINFO("recollindex: starting up: " << ctime(&tt));
}
setMyPriority(config); setMyPriority(config);
// Init status updater // Init status updater
@ -920,5 +923,9 @@ int main(int argc, char *argv[])
} }
statusUpdater()->update(DbIxStatus::DBIXS_DONE, ""); statusUpdater()->update(DbIxStatus::DBIXS_DONE, "");
flushIdxReasons(); flushIdxReasons();
{
time_t tt = time(nullptr);
LOGINFO("recollindex: exiting: " << ctime(&tt));
}
return !status; return !status;
} }