Skip to content

Commit

Permalink
remove leftover testing/debugging log statements from handleReminders…
Browse files Browse the repository at this point in the history
… function - #482
  • Loading branch information
SergeyMosin committed Mar 6, 2024
1 parent ef675f4 commit 156b810
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/Backend/DavListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ public function handleReminders(int $lastStart, IDBConnection $db, IBackendConne
$remindersToSend = [];
while ($row = $result->fetch()) {

$this->logger->error('row id: ' . $row['id']);

$reuseSettings = true;
if ($userId !== $row[BackendUtils::KEY_USER_ID]
|| $pageId !== $row[BackendUtils::KEY_PAGE_ID]) {
Expand All @@ -138,9 +136,9 @@ public function handleReminders(int $lastStart, IDBConnection $db, IBackendConne
foreach ($remDataArray as $remData) {
$remindAt = $row['start'] - $remData[BackendUtils::REMINDER_DATA_TIME];

$this->logger->error($remindAt . ', '
. $row['start'] . ', '
. $remData[BackendUtils::REMINDER_DATA_TIME]);
// $this->logger->error($remindAt . ', '
// . $row['start'] . ', '
// . $remData[BackendUtils::REMINDER_DATA_TIME]);

// $lastStart is set at the START of previous job
// for next job $lastStart is already set to basically $now
Expand All @@ -159,7 +157,7 @@ public function handleReminders(int $lastStart, IDBConnection $db, IBackendConne
}
$result->closeCursor();

$this->logger->error('rts: ' . var_export($remindersToSend, true));
// $this->logger->error('rts: ' . var_export($remindersToSend, true));

if (count($remindersToSend) === 0) {
// nothing to do
Expand Down

0 comments on commit 156b810

Please sign in to comment.