ADILogger.exception should not call dsproc.error
Currently ADILogger.exception()
calls dsproc.error()
which results in the process exiting with a non-zero exit code. This is not the documented behavior of this method and its behavior not consistent with the python standard library method logging.exception()
method, so it is not intuitive either.
To make ADILogger.exception()
consistent with its docstring and with python built-ins it should call dsproc.warning()
instead. This would allow users to both log and handle exceptions in their code instead of having to pick one or the other.
The ADILogger.exception()
docstring is below:
"""-----------------------------------------------------------------------
Use this method to log the stack trace of any raised exception to the process's
ADI log file.
Args:
- message: str
An optional additional message to log, in addition to the stack trace.
-----------------------------------------------------------------------"""
Edited by Maxwell Levin