Draegerwerk/sdc11073

feature: format httpreturncodeerror in log message

Closed this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Feature idea

self._logger.error('could not subscribe: {}'.format(HTTPReturnCodeError))

use the __repr__ instead of default __str__ because currently you get ERROR could not subscribe: <class 'sdc11073.pysoap.soapclient.HTTPReturnCodeError'> which is not very helpful

Alternatives

implement __str__ for HTTPReturnCodeError

Implementation idea

No response

Participation

  • I am willing to submit a pull request to implement this feature.

Link to the idea discussion

No response