Skip to content

Commit 3e1df5d

Browse files
committed
apply suggestions from code review.
1 parent a52b789 commit 3e1df5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datajoint/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,15 @@ def start_transaction(self):
380380
raise errors.DataJointError("Nested connections are not supported.")
381381
self.query("START TRANSACTION WITH CONSISTENT SNAPSHOT")
382382
self._in_transaction = True
383-
logger.info("Transaction started")
383+
logger.debug("Transaction started")
384384

385385
def cancel_transaction(self):
386386
"""
387387
Cancels the current transaction and rolls back all changes made during the transaction.
388388
"""
389389
self.query("ROLLBACK")
390390
self._in_transaction = False
391-
logger.info("Transaction cancelled. Rolling back ...")
391+
logger.debug("Transaction cancelled. Rolling back ...")
392392

393393
def commit_transaction(self):
394394
"""
@@ -397,7 +397,7 @@ def commit_transaction(self):
397397
"""
398398
self.query("COMMIT")
399399
self._in_transaction = False
400-
logger.info("Transaction committed and closed.")
400+
logger.debug("Transaction committed and closed.")
401401

402402
# -------- context manager for transactions
403403
@property

0 commit comments

Comments
 (0)