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

AbstractController: print some info for silenced exception dump

parent 1caee76c
...@@ -90,8 +90,8 @@ def config_files(directory): ...@@ -90,8 +90,8 @@ def config_files(directory):
return [os.path.join(conf_d_dir, f) for f in config_files] return [os.path.join(conf_d_dir, f) for f in config_files]
else: else:
return [] return []
def setup_config(conf_dir): def setup_config(conf_dir):
logger.info('Using %s as config dir.' % conf_dir) logger.info('Using %s as config dir.' % conf_dir)
set_configpath(conf_dir) set_configpath(conf_dir)
...@@ -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