mirror of
https://github.com/OpenKMIP/PyKMIP.git
synced 2025-07-24 22:44:36 +02: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:
parent
e9f9726180
commit
27f09f6b34
@ -69,7 +69,8 @@ class KMIPServer(object):
|
|||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
self._processor.process(protocol, protocol)
|
self._processor.process(protocol, protocol)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
self.logger.error('KMIPServer {0} {1}'.format(type(e),e))
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
def _set_variables(self, host, port, keyfile, certfile, cert_reqs,
|
def _set_variables(self, host, port, keyfile, certfile, cert_reqs,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user