19 lines
546 B
Diff
19 lines
546 B
Diff
diff --git a/src/logging.sh b/src/logging.sh
|
|
index 95604c1..083d6d0 100644
|
|
--- a/src/logging.sh
|
|
+++ b/src/logging.sh
|
|
@@ -237,7 +238,12 @@ DEBUG=${DEBUG:-""}
|
|
|
|
rlLogDebug() {
|
|
if [ "$DEBUG" == 'true' -o "$DEBUG" == '1' -o "$LOG_LEVEL" == "DEBUG" ]; then
|
|
- rlLog "$1" "$2" "DEBUG" && rljAddMessage "$1" "DEBUG"
|
|
+ if [[ -n "$DEBUG_TO_CONSOLE_ONLY" ]]; then
|
|
+ local __INTERNAL_LogText_no_file=1
|
|
+ __INTERNAL_LogText "$1" "DEBUG"
|
|
+ else
|
|
+ rlLog "$1" "$2" "DEBUG"
|
|
+ fi
|
|
fi
|
|
}
|
|
rlLogInfo() { rlLog "$1" "$2" "INFO"; }
|