Skip to content

Exception in traceback logging #124590

@aliasgar55

Description

@aliasgar55

Bug report

Bug description:

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 the above exception when trying to log exception

CPython versions tested on:

3.10

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions