diff --git a/lib/mu-store.cc b/lib/mu-store.cc index 1c02fab9..a09e1ec2 100644 --- a/lib/mu-store.cc +++ b/lib/mu-store.cc @@ -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; }