From a87a69e281d985f0ed262e3d0359595e7f7a5fa6 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Mon, 28 Jan 2019 16:06:36 +0100 Subject: [PATCH] Log trigger server error --- cdist/trigger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cdist/trigger.py b/cdist/trigger.py index 4e66ac6b..1b9a384b 100644 --- a/cdist/trigger.py +++ b/cdist/trigger.py @@ -145,6 +145,7 @@ class TriggerHttp(http.server.BaseHTTPRequestHandler): message = str(e) except Exception as e: # cdist/trigger server is broken + log.exception(e) code = 500 self.send_response(code=code, message=message)