Updated two debug statements
One in GearyController is to assist when looking for reasons why for log messages, otherwise multiple accounts could be difficult to determine which database is causing the problem.
This commit is contained in:
parent
e74e29312b
commit
baddc56c11
2 changed files with 7 additions and 2 deletions
|
|
@ -1276,8 +1276,11 @@ public class GearyController {
|
|||
// one or the other in a folder
|
||||
private void on_delete_message() {
|
||||
// Prevent deletes of the same conversation from repeating.
|
||||
if (is_viewed_conversation(last_deleted_conversation))
|
||||
if (is_viewed_conversation(last_deleted_conversation)) {
|
||||
debug("not archiving/deleting, viewed conversation is last deleted conversation");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// There should always be at least one conversation selected here, otherwise the archive
|
||||
// button is disabled, but better safe than segfaulted.
|
||||
|
|
|
|||
|
|
@ -99,7 +99,9 @@ private int throw_on_error(Context ctx, string? method, int result, string? raw
|
|||
return result;
|
||||
}
|
||||
|
||||
string location = !String.is_empty(method) ? "(%s) ".printf(method) : "";
|
||||
string location = !String.is_empty(method)
|
||||
? "(%s %s) ".printf(method, ctx.get_database().db_file.get_path())
|
||||
: "(%s) ".printf(ctx.get_database().db_file.get_path());
|
||||
string errmsg = (ctx.get_connection() != null) ? " - %s".printf(ctx.get_connection().db.errmsg()) : "";
|
||||
string sql;
|
||||
if (ctx.get_statement() != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue