Skip to content

Unexpected error is logged under INFO log level, not error #753

Description

@Talkless

See:

self.logger.info('unexpected error', exc_info=exc)

API client experienced 500, but we did not see anything in apache2 error log.

Bumping log verbosity to DEBUG we started seeing:

[2026-06-18 10:48:07,241] INFO in site: unexpected error "werkzeug.exceptions.BadRequest: 400 Bad Request: pairing_uuid exceeds maximum length of 45 characters" at /...

Why unexpected errors are logged using INFO? I would expect ERROR level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions