Skip to content

logger.exception error without the traceback? #1479

Description

@grheard

More of a question than an issue.

Is there a way to get the error portion of logger.exception without the traceback for a given sink?

I have an application that posts errors to a status bar and a separate sink that logs to a file. The file sink has backtrace=True and the method sink for the status bar has backtrace=False but it still receives the traceback and I would rather it still get the error description minus the traceback.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions