Project

General

Profile

« Previous | Next » 

Revision 9294

bugfix: lib/sh/util.sh: command__set_fds(): log the command output at the same log_level as the command name (i.e. leave the log_level as-is), to allow nesting verbose commands within one another without the inner commands always getting suppressed

View differences:

lib/sh/util.sh
438 438
	ensure_nested_func
439 439
	if test "$cmd_log_fd" = "$log_fd"; then log++; log++; fi # default case
440 440
	local src
441
	if (log++; can_log); then src="&$log_fd"; else src=/dev/null; fi
441
	if can_log; then src="&$log_fd"; else src=/dev/null; fi
442 442
	set_fds "$cmd_log_fd>$src"
443 443
}
444 444

  

Also available in: Unified diff