store: add bit more debug-logging

This commit is contained in:
Dirk-Jan C. Binnema 2020-06-10 17:41:00 +03:00
parent 3dc4b93989
commit 981c781425
1 changed files with 8 additions and 0 deletions

View File

@ -346,6 +346,8 @@ Store::add_message (const std::string& path)
throw Error{Error::Code::Message, "failed to add message: %s",
gerr ? gerr->message : "something went wrong"};
g_debug ("added message @ %s; docid = %u", path.c_str(), docid);
return docid;
}
@ -362,6 +364,9 @@ Store::update_message (MuMsg *msg, unsigned docid)
throw Error{Error::Code::Internal, "failed to update message",
gerr ? gerr->message : "something went wrong"};
g_debug ("updated message @ %s; docid = %u",
mu_msg_get_path(msg), docid);
return true;
}
@ -379,6 +384,9 @@ Store::remove_message (const std::string& path)
} MU_XAPIAN_CATCH_BLOCK_RETURN (false);
g_debug ("deleted message @ %s from database", path.c_str());
return true;
}