mirror of https://github.com/djcb/mu.git
store: add bit more debug-logging
This commit is contained in:
parent
3dc4b93989
commit
981c781425
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue