Project

General

Profile

« Previous | Next » 

Revision 13220

lib/sh/util.sh: setup_log_fd(): $log_fd: use 3 (stdlog) since other scripts are likely to use this for logging as well

View differences:

trunk/lib/sh/util.sh
841 841
# mnemonic: 4 looks like A for Alternate
842 842
# do NOT use 1x, which are used by eval (which is used by set_fds())
843 843
# do NOT use 2x, which we use as global stdin/stdout/stderr
844
# do NOT use 3x, which we use for logging
845 844

  
846 845
setup_log_fd() # view logging output at verbosity >= 5
847 846
{
848 847
	log_local; log+ 4; log-- echo_func 
849
	log_fd=30 # stdlog
848
	log_fd=3 # stdlog
850 849
	fd_set_default "$log_fd>&2" || true
851 850
}
852 851
setup_log_fd

Also available in: Unified diff