summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-08 14:33:50 +0100
committerSimon Rettberg2024-02-08 14:33:50 +0100
commit11e0ff3196480a921f4d308ab62ad0bdff62ad03 (patch)
treeee4705560b9dae040e183dcb1663800f30678688 /core
parent[run-virt] Use SLX_DEBUG, like slxlog does, by switching to is_debug (diff)
downloadmltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.tar.gz
mltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.tar.xz
mltk-11e0ff3196480a921f4d308ab62ad0bdff62ad03.zip
[slxlog] Use is_debug for checking SLX_DEBUG mode
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/slxlog/data/opt/openslx/bin/slxlog3
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"