tests: allow passing log_level via an environment variable (#10490)

This commit is contained in:
Evgeny Vereshchagin 2018-10-23 10:09:23 +03:00 committed by Yu Watanabe
parent 3deb28f20a
commit 20fc56c02d
1 changed files with 1 additions and 1 deletions

View File

@ -782,7 +782,7 @@ _lvl2char() {
# This enables:
# dwarn "This is a warning"
# echo "This is a warning" | dwarn
LOG_LEVEL=4
LOG_LEVEL=${LOG_LEVEL:-4}
dlog() {
[ -z "$LOG_LEVEL" ] && return 0