Project

General

Profile

« Previous | Next » 

Revision 9280

lib/sh/util.sh: set_global_fds(): also open stdlog logging stream on fd 30, and use this in the logging functions by setting $log_fd

View differences:

util.sh
349 349
	fd_set_default '20<&0' || true
350 350
	fd_set_default '21>&1' || true
351 351
	fd_set_default '22>&2' || true
352
	fd_set_default '30>&2' || true # stdlog
352 353
}
353 354
set_global_fds
354 355
err_fd=22 # global stderr
356
log_fd=30 # stdlog
355 357

  
356 358
# usage: explicit_errors_only=1 script...
357 359
# show only explicitly-displayed errors (which have been redirected to fd 22)

Also available in: Unified diff