Change of debug logging format, and what's logged.
This commit is contained in:
parent
40902975a8
commit
76faa49e50
1 changed files with 2 additions and 2 deletions
|
|
@ -572,7 +572,7 @@ while :; do
|
||||||
start_compression_jobs
|
start_compression_jobs
|
||||||
|
|
||||||
# If debugging is enabled, record the time of entry into the read below.
|
# If debugging is enabled, record the time of entry into the read below.
|
||||||
(( DEBUG == 1 )) && printf "%s - %s\n" "$(date "+%Y%m%dT%H%M%S.%N")" "Enter read" >>"$DEBUG_FILE"
|
(( DEBUG == 1 )) && printf "%s - %s\n" "$(date "+%Y%m%d %H%M%S.%N")" "Enter read" >>"$DEBUG_FILE"
|
||||||
|
|
||||||
# Read the log line, but timeout at the top of the next second if nothing is read.
|
# Read the log line, but timeout at the top of the next second if nothing is read.
|
||||||
# Note: The second $(...) expansion should *not* be quoted in this instance, and
|
# Note: The second $(...) expansion should *not* be quoted in this instance, and
|
||||||
|
|
@ -582,7 +582,7 @@ while :; do
|
||||||
ERR="$?"
|
ERR="$?"
|
||||||
|
|
||||||
# If debugging, record the time of exit from read.
|
# If debugging, record the time of exit from read.
|
||||||
(( DEBUG == 1 )) && printf "%s - %s\n" "$(date "+%Y%m%dT%H%M%S.%N")" "Exit read, ERR = $ERR" >>"$DEBUG_FILE"
|
(( DEBUG == 1 )) && printf "%s - %s\n" "$(date "+%Y%m%d %H%M%S.%N")" "Exit read: ERR = $ERR, VHOST = $LOG_VHOST DATA = ${LOG_DATA:0:50}" >>"$DEBUG_FILE"
|
||||||
|
|
||||||
# Determine how the read above was exited.
|
# Determine how the read above was exited.
|
||||||
if (( ERR > 128 )); then
|
if (( ERR > 128 )); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue