Project

General

Profile

« Previous | Next » 

Revision 9143

lib/sh/util.sh: log_err(): ensure errors are visible by using 2>&22. since this is uses log(), verbosity=1 also needs to be set.

View differences:

lib/sh/util.sh
163 163
# usage: symbol=... log_custom msg
164 164
log_custom() { local PS4="${PS4%[^ ] }$symbol "; log "$@"; }
165 165

  
166
log_err() { symbol=! log_custom "$@"; }
166
log_err() { symbol=! verbosity=1 log_custom "$@" 2>&22; } #ensure errors visible
167 167

  
168 168
log_info() { symbol=? log_custom "$@"; }
169 169

  

Also available in: Unified diff