Skip to content

Commit 5650592

Browse files
KevinjilmeisterT
authored andcommitted
Configure logger before using it
(cherry picked from commit 05d0f98)
1 parent 25add0b commit 5650592

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ public function getContestStartTime(): ?float
200200
if (isset($this->cachedContestData->startTime)) {
201201
return Utils::toEpochFloat($this->cachedContestData->startTime);
202202
} else {
203+
if (empty($this->logger)) {
204+
$this->configureLogger();
205+
}
203206
$this->logger->warning('Contest has no start time, is the contest paused?');
204207
return null;
205208
}

0 commit comments

Comments
 (0)