picologging icon indicating copy to clipboard operation
picologging copied to clipboard

Broken when exc_info argument is provided to the log() method

Open vasu-malhotra-graviton opened this issue 11 months ago • 0 comments

Broken on Python 3.8 ig.

Minimal code to reproduce (assuming Python 3.8):

import picologging as logging


logger = logging.getLogger()
logger.log(logging.WARN, "Hello", exc_info=False)

Error I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'

vasu-malhotra-graviton avatar Mar 26 '24 09:03 vasu-malhotra-graviton