Browse code

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

Sean Dague authored on 2016/02/03 20:58:39
Showing 4 changed files
... ...
@@ -51,6 +51,7 @@ source $TOP_DIR/lib/swift
51 51
 source $TOP_DIR/lib/heat
52 52
 source $TOP_DIR/lib/neutron-legacy
53 53
 
54
+set -o xtrace
54 55
 
55 56
 # Extras Source
56 57
 # --------------
... ...
@@ -23,7 +23,6 @@
23 23
 # Print the commands being run so that we can see the command that triggers
24 24
 # an error.  It is also useful for following along as the install occurs.
25 25
 set -o xtrace
26
-export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
27 26
 
28 27
 # Make sure custom grep options don't get in the way
29 28
 unset GREP_OPTIONS
... ...
@@ -14,6 +14,9 @@ unset LANGUAGE
14 14
 LC_ALL=C
15 15
 export LC_ALL
16 16
 
17
+# Make tracing more educational
18
+export PS4='+ ${BASH_SOURCE}:${FUNCNAME[0]}:L${LINENO}:   '
19
+
17 20
 # Find the other rc files
18 21
 RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
19 22
 
... ...
@@ -87,6 +87,8 @@ load_plugin_settings
87 87
 # ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
88 88
 GetOSVersion
89 89
 
90
+set -o xtrace
91
+
90 92
 # Run extras
91 93
 # ==========
92 94