tweak ps4 for readability

After staring at a bunch of logs, try to crisp up the ps4 output for
maximum readability.

This also adds PS4 to all calling scripts by having a common PS4 in
stackrc. It should make understanding when clean fails a bit more
straight forward.

Change-Id: Ia1f8dff5c1102c32c146a020a9f033c65d2c50de
This commit is contained in:
Sean Dague
2016-02-03 06:58:39 -05:00
parent 5601dff54d
commit e73f88e70b
4 changed files with 6 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ source $TOP_DIR/lib/swift
source $TOP_DIR/lib/heat
source $TOP_DIR/lib/neutron-legacy
set -o xtrace
# Extras Source
# --------------

View File

@@ -23,7 +23,6 @@
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following along as the install occurs.
set -o xtrace
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
# Make sure custom grep options don't get in the way
unset GREP_OPTIONS

View File

@@ -14,6 +14,9 @@ unset LANGUAGE
LC_ALL=C
export LC_ALL
# Make tracing more educational
export PS4='+ ${BASH_SOURCE}:${FUNCNAME[0]}:L${LINENO}: '
# Find the other rc files
RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)

View File

@@ -87,6 +87,8 @@ load_plugin_settings
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
GetOSVersion
set -o xtrace
# Run extras
# ==========