-
-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
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
Labels
No labels