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):
return [os.path.join(conf_d_dir, f) for f in config_files]
else:
return []
def setup_config(conf_dir):
def setup_config(conf_dir):
logger.info('Using %s as config dir.' % conf_dir)
set_configpath(conf_dir)
......@@ -180,8 +180,8 @@ def exception_string():
return ''.join(st)
def log_exception():
sys.stderr.write(exception_string())
def log_exception(prefix=""):
sys.stderr.write(prefix + exception_string())
class Netstat(object):
......
......@@ -127,7 +127,7 @@ class AbstractController(object):
except vispa.AjaxException:
raise
except:
vispa.log_exception()
vispa.log_exception("AbstractController failed get(%s)" % key)
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