jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

Reduce reraised-exception log to debug #239

Closed iawells closed 7 years ago

iawells commented 7 years ago

When an exception occurs during a request, it can be for harmless reasons (using an eventlet.timeout, for example). Also, the exception is already returned to the caller, who can better judge its severity. Logging it here as an exception puts a lot of ERROR-level logs out that might not, in fact, reflect errors,

This lowers the log level to a single-line debug.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 88.212% when pulling 30cf6d22dbd295862efa721f25aaa0954525dd80 on iawells:master into 18c75196ffd04b3104f3ba44356ec1fcbcc4d09a on jplana:master.