Skip to content

file errors not capture in server log #154

@clach04

Description

@clach04

Errors relating to file IO not captured in the (web) server log.

This is due to using str() representation of exception:

logging.error('There is an error while writing: %s. Error: %s', path, str(e))  # this does not give enough information on server

Instead either need to use repr():

logging.error('There is an error while writing: %s. Error: %r', path, e)

Or logging traceback option:

logging.error('There is an error while writing: %s.', path, exc_info=True)

Also see #152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions