Fix DBLOGNAME (".Db") diagnostics: "Magic" transactions was wrong way

round.
This commit is contained in:
kulath 2016-06-13 17:59:47 +01:00
parent cd5fa5c1ff
commit 445562ea01

View File

@ -2198,7 +2198,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
disconnected.
"""
_LOG.debug(" %s%sDbBsddb %s transaction begin for '%s'"
% ("Magic " if getattr(transaction, 'no_magic', False)
% ("Magic " if not getattr(transaction, 'no_magic', False)
else "",
"Batch " if transaction.batch else "",
hex(id(self)),
@ -2276,7 +2276,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
self.__after_commit(transaction)
self.has_changed = True
_LOG.debug(" %s%sDbBsddb %s transaction commit for '%s'"
% ("Magic " if getattr(transaction, 'no_magic', False)
% ("Magic " if not getattr(transaction, 'no_magic', False)
else "",
"Batch " if transaction.batch else "",
hex(id(self)),