From c8b62c3039013f3b429e95a7d752828a72b72b59 Mon Sep 17 00:00:00 2001 From: Horshack Date: Sat, 29 Aug 2020 08:43:57 -0700 Subject: [PATCH] Changed delay operations to log interactively rather than silently --- canomate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canomate.py b/canomate.py index a9fb85b..016d0af 100644 --- a/canomate.py +++ b/canomate.py @@ -1356,7 +1356,6 @@ def convertTimeStrToSeconds(timeStr, fHandleConversionExeptions=True): def delayWithConsoleMessage(delaySecs, delayReasonDesc=""): if delaySecs > 0: delayReasonStr = "(Reason: {:s})".format(delayReasonDesc) if delayReasonDesc != "" else "" - applog_i_nc("Delaying for {:.2f} seconds {:s}".format(delaySecs, delayReasonStr)) secsRemaining = delaySecs while secsRemaining > 0: secsDelayThisIteration = min(secsRemaining, 1) @@ -1364,6 +1363,7 @@ def delayWithConsoleMessage(delaySecs, delayReasonDesc=""): time.sleep(secsDelayThisIteration) secsRemaining -= secsDelayThisIteration consoleClearLine() + applog_i("Delayed for {:.2f} seconds {:s}".format(delaySecs, delayReasonStr)) # # Writes a message directly to console (stdout) without newline. This is used