Fix default log level in log_warn_die.sh.

This commit is contained in:
Daniel Nichter
2013-01-24 11:39:23 -07:00
parent 738359dd10
commit 26cc08d3d9
8 changed files with 31 additions and 28 deletions

View File

@@ -34,15 +34,15 @@ ts() {
}
info() {
[ ${OPT_VERBOSE:-0} -ge 3 ] && ts "$*"
[ ${OPT_VERBOSE:-3} -ge 3 ] && ts "$*"
}
log() {
[ ${OPT_VERBOSE:-0} -ge 2 ] && ts "$*"
[ ${OPT_VERBOSE:-3} -ge 2 ] && ts "$*"
}
warn() {
[ ${OPT_VERBOSE:-0} -ge 1 ] && ts "$*" >&2
[ ${OPT_VERBOSE:-3} -ge 1 ] && ts "$*" >&2
EXIT_STATUS=1
}