From 8dacf0769a48b4538db539f56307648de7d45729 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 14 Mar 2022 18:08:56 +0100 Subject: [PATCH] recollindex: log the start and end wall clock --- src/index/recollindex.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index/recollindex.cpp b/src/index/recollindex.cpp index 208d2d8f..6d1358b9 100644 --- a/src/index/recollindex.cpp +++ b/src/index/recollindex.cpp @@ -761,7 +761,10 @@ int main(int argc, char *argv[]) // 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. - LOGINFO("recollindex: starting up\n"); + { + time_t tt = time(nullptr); + LOGINFO("recollindex: starting up: " << ctime(&tt)); + } setMyPriority(config); // Init status updater @@ -920,5 +923,9 @@ int main(int argc, char *argv[]) } statusUpdater()->update(DbIxStatus::DBIXS_DONE, ""); flushIdxReasons(); + { + time_t tt = time(nullptr); + LOGINFO("recollindex: exiting: " << ctime(&tt)); + } return !status; }