Skip to content

Commit

Permalink
Added diagnostics (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Nov 8, 2023
1 parent 2f0adb6 commit 78aef73
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ private synchronized void guard() {
var now = Instant.now();
var leftToWait = timeout.minus(Duration.between(lastSeenAt, now));

logger.trace("{}: leftToWait={}, inTimeout={}, repeat={}", marker, leftToWait, inTimeout, repeat);

if ((leftToWait.toMillis() <= 0) && (!inTimeout || repeat)) {
generateTimeoutSignal(now);
}
Expand Down

0 comments on commit 78aef73

Please sign in to comment.