File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -380,15 +380,15 @@ def start_transaction(self):
380
380
raise errors .DataJointError ("Nested connections are not supported." )
381
381
self .query ("START TRANSACTION WITH CONSISTENT SNAPSHOT" )
382
382
self ._in_transaction = True
383
- logger .info ("Transaction started" )
383
+ logger .debug ("Transaction started" )
384
384
385
385
def cancel_transaction (self ):
386
386
"""
387
387
Cancels the current transaction and rolls back all changes made during the transaction.
388
388
"""
389
389
self .query ("ROLLBACK" )
390
390
self ._in_transaction = False
391
- logger .info ("Transaction cancelled. Rolling back ..." )
391
+ logger .debug ("Transaction cancelled. Rolling back ..." )
392
392
393
393
def commit_transaction (self ):
394
394
"""
@@ -397,7 +397,7 @@ def commit_transaction(self):
397
397
"""
398
398
self .query ("COMMIT" )
399
399
self ._in_transaction = False
400
- logger .info ("Transaction committed and closed." )
400
+ logger .debug ("Transaction committed and closed." )
401
401
402
402
# -------- context manager for transactions
403
403
@property
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ def _update_error_stack(plugin_name):
15
15
plugin_meta = pkg_resources .get_distribution (plugin_name )
16
16
17
17
data = hash_pkg (pkgpath = str (Path (plugin_meta .module_path , plugin_name )))
18
- signature = plugin_meta .get_metadata ("{ }.sig". format ( plugin_name ) )
19
- pubkey_path = str (Path (base_meta .egg_info , "{ }.pub". format ( base_name ) ))
18
+ signature = plugin_meta .get_metadata (f" { plugin_name } .sig" )
19
+ pubkey_path = str (Path (base_meta .egg_info , f" { base_name } .pub" ))
20
20
verify (pubkey_path = pubkey_path , data = data , signature = signature )
21
- logger .info ("DataJoint verified plugin `{}` detected." . format ( plugin_name ) )
21
+ logger .info (f "DataJoint verified plugin `{ plugin_name } ` detected." )
22
22
return True
23
23
except (FileNotFoundError , InvalidSignature ):
24
- logger .warning ("Unverified plugin `{}` detected." . format ( plugin_name ) )
24
+ logger .warning (f "Unverified plugin `{ plugin_name } ` detected." )
25
25
return False
26
26
27
27
You can’t perform that action at this time.
0 commit comments