From 11e0ff3196480a921f4d308ab62ad0bdff62ad03 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Feb 2024 14:33:50 +0100 Subject: [slxlog] Use is_debug for checking SLX_DEBUG mode --- core/modules/slxlog/data/opt/openslx/bin/slxlog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') 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" -- cgit v1.2.3-55-g7522