From: Steven Baltakatei Sandoval Date: Tue, 14 Jul 2020 02:31:40 +0000 (+0000) Subject: debug(bklog):Add debug messages X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/commitdiff_plain/be31cb91af743e9586026185f6746f12f25d3045?hp=f5024030c11cd53a1cfdb067f128e3047dff34a2 debug(bklog):Add debug messages bklog is malfunctioning. Adding debug messages. --- diff --git a/exec/bklog b/exec/bklog index 9b7fd67..584c22c 100644 --- a/exec/bklog +++ b/exec/bklog @@ -1429,16 +1429,16 @@ main() { bufferRound=0; while [[ $SECONDS -lt "scriptTTL" ]]; do vbm "STATUS:$fn:Starting buffer round:$bufferRound"; - bufferTOD="$(( (1+bufferRound)*bufferTTL ))"; # Set buffer round time-of-death + bufferTOD="$(( (1+bufferRound)*bufferTTL ))" && vbm "DEBUG :$fn:bufferTOD:$bufferTOD"; # Set buffer round time-of-death # Note start time of data collection - timeBufferStartEpoch="$(date +%s)"; + timeBufferStartEpoch="$(date +%s)" && vbm "DEBUG :$fn:timeBufferStartEpoch:$timeBufferStartEpoch"; # Consume stdin to fill buffer until buffer time-of-death (TOD) arrives while read -r -t "$bufferTTL" line && [[ $SECONDS -lt "$bufferTOD" ]]; do # Append line to buffer array buffer+=("$line"); done; # Note end time of data collection - timeBufferEndEpoch="$(date +%s)"; + timeBufferEndEpoch="$(date +%s)" && vbm "DEBUG :$fn:timeBufferEndEpoch:$timeBufferEndEpoch"; # Create dir_tmp if missing if ! [[ -d "$dir_tmp" ]]; then yell "ERROR:$fn:dir_tmp existence failure:$dir_tmp";