Don't log entire exception when forwarding a 412 Precondition Failed.
This commit is contained in:
parent
0bf07b4ba4
commit
e0f92b6185
@ -343,7 +343,7 @@ class PillarServer(Eve):
|
|||||||
return self.pillar_error_handler(error)
|
return self.pillar_error_handler(error)
|
||||||
|
|
||||||
def handle_sdk_precondition_failed(self, 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
|
error.code = 412
|
||||||
return self.pillar_error_handler(error)
|
return self.pillar_error_handler(error)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user