Blame SOURCES/debug-to-console.patch

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