From 7c0b0fb1953bd638cb7e72d0fe82b399f9c17087 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Jun 2021 21:51:16 +0100 Subject: [PATCH] Debug message for broken pipe --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index e177ca23a..b530f9901 100644 --- a/daemon.py +++ b/daemon.py @@ -821,6 +821,8 @@ class PubServer(BaseHTTPRequestHandler): self.wfile.write(msg) return True except BrokenPipeError as e: + if self.server.debug: + print('ERROR: _write error ' + str(tries) + ' ' + str(e)) break except Exception as e: print('ERROR: _write error ' + str(tries) + ' ' + str(e))