From 851b309351420824b2eedd4d6c7f812b6655ee55 Mon Sep 17 00:00:00 2001 From: Craig Vyvial Date: Tue, 26 Nov 2013 00:16:39 -0600 Subject: [PATCH] setting fake mode to print startup errors Change-Id: I55a2e547ffaa02621093af8d9c7d0a48714fb6be --- bin/trove-fake-mode | 6 +++--- etc/trove/trove.conf.test | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/trove-fake-mode b/bin/trove-fake-mode index ee393ffb66..46a7d32717 100755 --- a/bin/trove-fake-mode +++ b/bin/trove-fake-mode @@ -72,10 +72,10 @@ def run_server(): workers=CONF.trove_api_workers) start_fake_taskmanager() launcher.wait() - except RuntimeError as error: + except Exception: import traceback - print traceback.format_exc() - sys.exit("ERROR: %s" % error) + print(traceback.format_exc()) + sys.exit("ERROR Starting up") def main(): diff --git a/etc/trove/trove.conf.test b/etc/trove/trove.conf.test index 5b35736f0e..1b777d80a7 100644 --- a/etc/trove/trove.conf.test +++ b/etc/trove/trove.conf.test @@ -14,7 +14,7 @@ default_log_levels=routes.middleware=ERROR,trove.common.auth=WARN log_file = trovetest.log -use_stderr = False +use_stderr = True # Show more verbose log output (sets INFO log level output) verbose = True