Commit d2fc26dd authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti-masterd: Improve error logging for client requests

Ganeti errors should also be logged with a backtrace.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent f02fbd30
......@@ -181,10 +181,11 @@ class ClientRqHandler(SocketServer.BaseRequestHandler):
result = self._ops.handle_request(method, args)
success = True
except errors.GenericError, err:
logging.exception("Unexpected exception")
success = False
result = errors.EncodeException(err)
logging.error("Unexpected exception", exc_info=True)
logging.exception("Unexpected exception")
err = sys.exc_info()
result = "Caught exception: %s" % str(err[1])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment