mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
tests: allow passing log_level via an environment variable (#10490)
This commit is contained in:
parent
3deb28f20a
commit
20fc56c02d
@ -782,7 +782,7 @@ _lvl2char() {
|
|||||||
# This enables:
|
# This enables:
|
||||||
# dwarn "This is a warning"
|
# dwarn "This is a warning"
|
||||||
# echo "This is a warning" | dwarn
|
# echo "This is a warning" | dwarn
|
||||||
LOG_LEVEL=4
|
LOG_LEVEL=${LOG_LEVEL:-4}
|
||||||
|
|
||||||
dlog() {
|
dlog() {
|
||||||
[ -z "$LOG_LEVEL" ] && return 0
|
[ -z "$LOG_LEVEL" ] && return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user