Merge "[devstack] enable logging to stderr"

This commit is contained in:
Jenkins 2017-01-16 11:28:50 +00:00 committed by Gerrit Code Review
commit 78ae6fd072
1 changed files with 5 additions and 2 deletions

View File

@ -101,8 +101,8 @@ function configure_barbican {
# Copy functional test config # Copy functional test config
cp $BARBICAN_DIR/etc/barbican/barbican-functional.conf $BARBICAN_CONF_DIR cp $BARBICAN_DIR/etc/barbican/barbican-functional.conf $BARBICAN_CONF_DIR
# Do not set to DEBUG # Enable DEBUG
iniset $BARBICAN_CONF DEFAULT debug False iniset $BARBICAN_CONF DEFAULT debug True
# Set the host_href # Set the host_href
iniset $BARBICAN_CONF DEFAULT host_href "$BARBICAN_HOST_HREF" iniset $BARBICAN_CONF DEFAULT host_href "$BARBICAN_HOST_HREF"
@ -110,6 +110,9 @@ function configure_barbican {
# Set the log file location # Set the log file location
iniset $BARBICAN_CONF DEFAULT log_file "$BARBICAN_API_LOG_DIR/barbican.log" 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 # Format logging
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
setup_colorized_logging $BARBICAN_CONF DEFAULT project user setup_colorized_logging $BARBICAN_CONF DEFAULT project user