Skip to content

Commit 65ea84a

Browse files
committed
No stack traces for read timeouts
We don't need full stack traces for read timeouts. This patch shortens the error logs to: ``` May 06 12:04:42 vm350.rz.uni-osnabrueck.de opencast-camera-control[523905]: ERROR:occameracontrol.metrics:Failed to communicate with camera 'arec-15-421' @ 'http://camera1-15-421.example.com': HTTPConnectionPool(host='camera1-15-421.example.com', port=80): Read timed out. (read timeout=5) ``` This fixes #84
1 parent 083382a commit 65ea84a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

occameracontrol/metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class RequestErrorHandler():
5353

5454
err_msg_only = (
5555
requests.exceptions.ConnectionError,
56-
requests.exceptions.HTTPError)
56+
requests.exceptions.HTTPError,
57+
requests.exceptions.ReadTimeout)
5758

5859
def __init__(self, resource, message):
5960
'''Create a RequestErrorHandler instance.

0 commit comments

Comments
 (0)