You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will print a normal debug info : 2022-07-12 14:38:40,173 DEBUG MyLog some debug info
Then I import bit to my project and send some coin
from bit import Key
my_key = Key(...)
outputs=[....]
my_key.send(outputs)
If I run logger.debug('some debug info') again, it will output 2 lines as below
2022-07-12 14:41:10,353 DEBUG MyLog some debug info
DEBUG:MyLog:some debug info
Because in bit.transaction.estimate_tx_fee you used logging.debug to print debug info, which corrupted my project logger,kindly recommend you to defind a logger in other py file and then import and use it
The text was updated successfully, but these errors were encountered:
Hi ofek!
Your peoject use
logging.debug
directly to print debug log, if I defind a logger in my project using codeThis will print a normal debug info :
2022-07-12 14:38:40,173 DEBUG MyLog some debug info
Then I import bit to my project and send some coin
If I run
logger.debug('some debug info')
again, it will output 2 lines as belowBecause in
bit.transaction.estimate_tx_fee
you usedlogging.debug
to print debug info, which corrupted my project logger,kindly recommend you to defind a logger in other py file and then import and use itThe text was updated successfully, but these errors were encountered: