Delgan / loguru

Python logging made (stupidly) simple
MIT License
20.04k stars 702 forks source link

Error when trying to print the exception #1212

Open aliasgar55 opened 2 months ago

aliasgar55 commented 2 months ago

TypeError: '>=' not supported between instances of 'RecordException' and 'int'

at .extract ( /usr/local/lib/python3.10/traceback.py:357 ) at .init ( /usr/local/lib/python3.10/site-packages/exceptiongroup/_formatting.py:96 ) at .print_exception ( /usr/local/lib/python3.10/traceback.py:119 ) at .print_exc ( /usr/local/lib/python3.10/traceback.py:179 ) at .google_cloud_log_sink ( /./app/core/logger.py:47 ) at .write ( /usr/local/lib/python3.10/site-packages/loguru/_simple_sinks.py:113 ) at .emit ( /usr/local/lib/python3.10/site-packages/loguru/_handler.py:177 )****

Getting this error when trying to print exception

Delgan commented 2 months ago

Hi.

Are you able to share a minimal reproducible example please?

aliasgar55 commented 1 month ago

Sure I will share one