Skip to content

Commit

Permalink
chore: Use a lower log level for debug messages in ConcurringSessionS…
Browse files Browse the repository at this point in the history
…ervice
  • Loading branch information
hectoras committed Jan 17, 2024
1 parent 4c1ca83 commit 46d1793
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions model/Service/ConcurringSessionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function setConcurringSession(string $executionId): void

public function adjustTimers(DeliveryExecution $execution): void
{
$this->logger->info(
$this->logger->debug(
sprintf('Adjusting timers on test restart, current ts is %f', microtime(true))
);

Expand All @@ -163,7 +163,7 @@ public function adjustTimers(DeliveryExecution $execution): void
$last = $this->currentSession->getAttribute("pausedAt-{$executionId}");
$this->currentSession->removeAttribute("pausedAt-{$executionId}");

$this->logger->info(
$this->logger->debug(
sprintf('Adjusting timers based on timestamp stored in session: %f', $last)
);
}
Expand All @@ -172,14 +172,14 @@ public function adjustTimers(DeliveryExecution $execution): void
if (!isset($last) && $testSession instanceof TestSession) {
$last = $this->getHighestItemTimestamp($testSession, $timer);

$this->logger->info(
$this->logger->debug(
sprintf('Adjusting timers based on highest item timestamp: %f', $last)
);
}

if (isset($last) && $last > 0) {
$delta = (new DateTime('now'))->format('U') - $last;
$this->logger->info(sprintf('Adjusting timers by %.2f s', $delta));
$this->logger->debug(sprintf('Adjusting timers by %.2f s', $delta));

$this->getTimerAdjustmentService()->increase(
$testSession,
Expand Down

0 comments on commit 46d1793

Please sign in to comment.