Log trigger server error

This commit is contained in:
Darko Poljak 2019-01-28 16:06:36 +01:00
parent b0a6292be8
commit 5c5202f5e2

View file

@ -145,6 +145,7 @@ class TriggerHttp(http.server.BaseHTTPRequestHandler):
message = str(e) message = str(e)
except Exception as e: except Exception as e:
# cdist/trigger server is broken # cdist/trigger server is broken
log.exception(e)
code = 500 code = 500
self.send_response(code=code, message=message) self.send_response(code=code, message=message)