Better logging. Errors without stacktrace are now printed to stderr
This commit is contained in:
parent
88b4d34e1a
commit
e4d2c98fb5
4 changed files with 37 additions and 13 deletions
|
|
@ -33,7 +33,6 @@ def readable_errors(func):
|
|||
except etcd3.exceptions.ConnectionTimeoutError as err:
|
||||
raise etcd3.exceptions.ConnectionTimeoutError('etcd connection timeout') from err
|
||||
except Exception:
|
||||
print('Some error occurred, most probably it is etcd that is erroring out.')
|
||||
logger.exception('Some etcd error occurred')
|
||||
return wrapper
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue