Commit ac2fe30c authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

AbstractController: print some info for silenced exception dump

parent 1caee76c
...@@ -180,8 +180,8 @@ def exception_string(): ...@@ -180,8 +180,8 @@ def exception_string():
return ''.join(st) return ''.join(st)
def log_exception(): def log_exception(prefix=""):
sys.stderr.write(exception_string()) sys.stderr.write(prefix + exception_string())
class Netstat(object): class Netstat(object):
......
...@@ -127,7 +127,7 @@ class AbstractController(object): ...@@ -127,7 +127,7 @@ class AbstractController(object):
except vispa.AjaxException: except vispa.AjaxException:
raise raise
except: except:
vispa.log_exception() vispa.log_exception("AbstractController failed get(%s)" % key)
return None return None
return None return None
......
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