mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
use comma for arguments in logging calls instead of format operator
This commit is contained in:
parent
e5dd5c665b
commit
1db8d59a88
@ -76,7 +76,7 @@ class BlockPipeline:
|
||||
tx.validate(self.bigchain)
|
||||
return tx
|
||||
except ValidationError as e:
|
||||
logger.warning('Invalid tx: %s' % e)
|
||||
logger.warning('Invalid tx: %s', e)
|
||||
self.bigchain.delete_transaction(tx.id)
|
||||
return None
|
||||
|
||||
|
@ -109,7 +109,7 @@ class Vote:
|
||||
tx.validate(self.bigchain)
|
||||
valid = True
|
||||
except exceptions.ValidationError as e:
|
||||
logger.warning('Invalid tx: %s' % e)
|
||||
logger.warning('Invalid tx: %s', e)
|
||||
valid = False
|
||||
|
||||
return valid, block_id, num_tx
|
||||
|
Loading…
x
Reference in New Issue
Block a user