From 05d79d89d17d3d3843eb1a09ac567159698b4227 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Tue, 1 Nov 2011 11:33:44 -0700 Subject: [PATCH] Log the exception when we get one. Change-Id: Iee478c8f300b608dd153e3400bd17866f52543c5 --- bin/nova-ajax-console-proxy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/nova-ajax-console-proxy b/bin/nova-ajax-console-proxy index 23fb42fb..5546e37a 100755 --- a/bin/nova-ajax-console-proxy +++ b/bin/nova-ajax-console-proxy @@ -102,7 +102,8 @@ class AjaxConsoleProxy(object): % (req_url, str(env))) start_response("401 NOT AUTHORIZED", []) return "Not Authorized" - except Exception: + except Exception, exc: + LOG.exception(exc) start_response("500 ERROR", []) return "Server Error"