Merge pull request #70 from felix-engelmann/master

KMIPServer serve log exceptions
This commit is contained in:
Peter Hamilton 2015-07-31 08:04:21 -04:00
commit f3abf96c11
1 changed files with 2 additions and 1 deletions

View File

@ -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,