Added debug options for autopause/stop (#1638)

This commit is contained in:
Geoff Bourne
2022-07-30 12:06:22 -05:00
committed by GitHub
parent 8dbfff1873
commit 2df678e96a
9 changed files with 42 additions and 12 deletions

View File

@@ -10,6 +10,7 @@
: "${AUTOPAUSE_TIMEOUT_INIT:=600}"
: "${AUTOPAUSE_PERIOD:=10}"
: "${AUTOPAUSE_KNOCK_INTERFACE:=eth0}"
: "${DEBUG_AUTOPAUSE:=false}"
export SERVER_PORT
export ENABLE_AUTOPAUSE
export AUTOPAUSE_TIMEOUT_EST
@@ -17,6 +18,7 @@ export AUTOPAUSE_TIMEOUT_KN
export AUTOPAUSE_TIMEOUT_INIT
export AUTOPAUSE_PERIOD
export AUTOPAUSE_KNOCK_INTERFACE
export DEBUG_AUTOPAUSE
log "Autopause functionality enabled"

View File

@@ -8,11 +8,13 @@
: "${AUTOSTOP_TIMEOUT_EST:=3600}"
: "${AUTOSTOP_TIMEOUT_INIT:=1800}"
: "${AUTOSTOP_PERIOD:=10}"
: "${DEBUG_AUTOSTOP:=false}"
export SERVER_PORT
export ENABLE_AUTOSTOP
export AUTOSTOP_TIMEOUT_EST
export AUTOSTOP_TIMEOUT_INIT
export AUTOSTOP_PERIOD
export DEBUG_AUTOSTOP
log "Autostop functionality enabled"

View File

@@ -99,7 +99,6 @@ function isDebugging() {
function handleDebugMode() {
if isDebugging; then
set -x
extraCurlArgs=(-v)
fi
}