Project

General

Profile

« Previous | Next » 

Revision 8922

lib/util.sh: echo_vars (): output vars with log_level 3 so they can be excluded separately from function calls to reduce clutter in the logging output. increase the default util.run verbosity so that vars are still printed by default.

View differences:

lib/runscripts/util.run
17 17
}
18 18
fi ####
19 19

  
20
: "${verbosity=2}"
20
: "${verbosity=3}"
21 21

  
22 22
. "$(dirname "${BASH_SOURCE[0]}")"/../util.sh
23 23

  
lib/util.sh
128 128

  
129 129
echo_vars () # usage: echo_vars var...
130 130
{
131
	inc_log_level
131
	inc_log_level; inc_log_level
132 132
	if can_log; then
133 133
		local var
134 134
		for var in "${@%%=*}"; do { echo -n "$PS4"; declare -p "$var";} >&2;done

Also available in: Unified diff