diff options
author | Simon Rettberg | 2024-02-08 14:33:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-02-08 14:33:50 +0100 |
commit | 11e0ff3196480a921f4d308ab62ad0bdff62ad03 (patch) | |
tree | ee4705560b9dae040e183dcb1663800f30678688 /core/modules/slxlog/data/opt/openslx/bin/slxlog | |
parent | [run-virt] Use SLX_DEBUG, like slxlog does, by switching to is_debug (diff) | |
download | mltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.tar.gz mltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.tar.xz mltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.zip |
[slxlog] Use is_debug for checking SLX_DEBUG mode
Diffstat (limited to 'core/modules/slxlog/data/opt/openslx/bin/slxlog')
-rwxr-xr-x | core/modules/slxlog/data/opt/openslx/bin/slxlog | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/slxlog/data/opt/openslx/bin/slxlog b/core/modules/slxlog/data/opt/openslx/bin/slxlog index fae6f5c8..41504a74 100755 --- a/core/modules/slxlog/data/opt/openslx/bin/slxlog +++ b/core/modules/slxlog/data/opt/openslx/bin/slxlog @@ -76,7 +76,8 @@ if [ $# -gt 2 ]; then EXTRA="$3" fi -if [ -n "$SLX_DEBUG" ]; then +. /opt/openslx/bin/slx-tools +if is_debug; then CURLLOG="/tmp/slxlog.$USER" else CURLLOG="/dev/null" |