Skip to content

Clear up 404 error message #7

@wedi

Description

@wedi

Hi!

Every time I open the Web UI the attached errors get logged. This is probably due to the browser trying to load a favicon but my first impression as a new user is that something serious might have gone wrong.

It would be nice to clean up the 404 log message to look less exciting and include what the actual request was.

postfix-parser_1  | 2020-11-27 17:51:29,931 postfixparser.api WARNING  _handle_error exception type / msg: <class 'quart.exceptions.NotFound'> / NotFound(404)
postfix-parser_1  | 2020-11-27 17:51:29,931 postfixparser.api WARNING  _handle_error traceback: Traceback (most recent call last):
postfix-parser_1  |   File "/root/.local/share/virtualenvs/postfix-parser-WTBDevF-/lib/python3.8/site-packages/quart/app.py", line 1834, in full_dispatch_request
postfix-parser_1  |     result = await self.dispatch_request(request_context)
postfix-parser_1  |   File "/root/.local/share/virtualenvs/postfix-parser-WTBDevF-/lib/python3.8/site-packages/quart/app.py", line 1876, in dispatch_request
postfix-parser_1  |     raise request_.routing_exception
postfix-parser_1  | quart.exceptions.NotFound: NotFound(404)
postfix-parser_1  | 

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