Project

General

Profile

« Previous | Next » 

Revision 9141

lib/sh/util.sh: limit_stderr(): if stdout goes to stderr (i.e. is logging info), assume that stderr_is_errors

View differences:

util.sh
268 268
{
269 269
	inc_log_level # should only apply during this function for use by can_log
270 270
	if test "$stdout2stderr"; then
271
		local stderr_is_errors="${stderr_is_errors-1}"
271 272
		if ! can_log; then exec 1>/dev/null; else stdout2stderr; fi
272 273
	else
273 274
		if ! can_log; then exec 2>/dev/null; fi

Also available in: Unified diff