Don't log entire exception when forwarding a 412 Precondition Failed.

This commit is contained in:
Sybren A. Stüvel 2016-09-23 09:40:01 +02:00
parent 0bf07b4ba4
commit e0f92b6185

View File

@ -343,7 +343,7 @@ class PillarServer(Eve):
return self.pillar_error_handler(error)
def handle_sdk_precondition_failed(self, error):
self.log.info('Forwarding PreconditionFailed exception to client: %s', error, exc_info=True)
self.log.info('Forwarding PreconditionFailed exception to client: %s', error)
error.code = 412
return self.pillar_error_handler(error)