From fc16d1f706dde4ed8a571a34eb41e1e158f10772 Mon Sep 17 00:00:00 2001 From: Marc Koderer Date: Tue, 13 Dec 2016 10:06:15 +0100 Subject: [PATCH] [devstack] enable logging to stderr In the screen window there isn't anything visible form the application logs. This enables logging to stdout/stderr. Change-Id: I6793dd84d2add56db520f1c0f19e868264e19c71 Closes-bug: #1649505 --- devstack/lib/barbican | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/devstack/lib/barbican b/devstack/lib/barbican index 082fd71a..a03eeb9f 100644 --- a/devstack/lib/barbican +++ b/devstack/lib/barbican @@ -101,8 +101,8 @@ function configure_barbican { # Copy functional test config cp $BARBICAN_DIR/etc/barbican/barbican-functional.conf $BARBICAN_CONF_DIR - # Do not set to DEBUG - iniset $BARBICAN_CONF DEFAULT debug False + # Enable DEBUG + iniset $BARBICAN_CONF DEFAULT debug True # Set the host_href iniset $BARBICAN_CONF DEFAULT host_href "$BARBICAN_HOST_HREF" @@ -110,6 +110,9 @@ function configure_barbican { # Set the log file location iniset $BARBICAN_CONF DEFAULT log_file "$BARBICAN_API_LOG_DIR/barbican.log" + # Enable logging to stderr to have log also in the screen window + iniset $BARBICAN_CONF DEFAULT use_stderr True + # Format logging if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then setup_colorized_logging $BARBICAN_CONF DEFAULT project user