mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00: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:
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue