diff options
author | Daniel Poelzleithner <git@poelzi.org> | 2020-11-29 22:36:28 +0100 |
---|---|---|
committer | Daniel Poelzleithner <git@poelzi.org> | 2020-11-29 22:51:44 +0100 |
commit | 3a52a4d4cf4dd309ba2026a515fa0c1112561d79 (patch) | |
tree | 5587a08342a938c5cbc08b9dcad35b4388905306 /src/library | |
parent | 966e62744974e324ca1a15d2b8c6ebe3ece7c152 (diff) |
Print info instead of debug when transaction failed
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/queryutil.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/library/queryutil.h b/src/library/queryutil.h index fe28dba777..f3e7d8a544 100644 --- a/src/library/queryutil.h +++ b/src/library/queryutil.h @@ -42,9 +42,14 @@ class ScopedTransaction { return false; } bool result = m_database.commit(); - qDebug() << "Committing transaction on" - << m_database.connectionName() - << "result:" << result; + if (result) { + qDebug() << "Committing transaction successfully on" + << m_database.connectionName(); + } else { + qInfo() << "Committing transaction failed on" + << m_database.connectionName() + << ":" << m_database.lastError(); + } m_active = false; return result; } |