mirror of
https://github.com/openkmip/pykmip
synced 2026-02-26 01:13:29 +00:00
KMIPServer serve log exceptions
The Exception handler discards all errors, would be nice to log them to the error logger before closing the connection.
This commit is contained in:
@@ -69,7 +69,8 @@ class KMIPServer(object):
|
||||
try:
|
||||
while True:
|
||||
self._processor.process(protocol, protocol)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
self.logger.error('KMIPServer {0} {1}'.format(type(e),e))
|
||||
connection.close()
|
||||
|
||||
def _set_variables(self, host, port, keyfile, certfile, cert_reqs,
|
||||
|
||||
Reference in New Issue
Block a user