Skip to content

Commit

Permalink
debug: More logging
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Apr 15, 2024
1 parent d8fac73 commit 268ccf8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Notification/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ protected function sendCallNotifications(Room $room): void {
$userLanguages = $this->serverConfig->getUserValueForUsers('core', 'lang', $userIds);
}
}
if ($room->getToken() === 'c9bui2ju') {
\OC::$server->getLogger()->warning('Debugging step #7.2: ' . microtime(true));
}

$this->connection->beginTransaction();
try {
Expand All @@ -347,8 +350,14 @@ protected function sendCallNotifications(Room $room): void {
$this->preparedCallNotifications[$languageCode] = $this->notificationProvider->prepare($translatedNotification, $languageCode);
$this->notificationManager->setPreparingPushNotification(false);
$notification = $translatedNotification;
if ($room->getToken() === 'c9bui2ju') {
\OC::$server->getLogger()->warning('Debugging step #7.2.' . $languageCode . ': ' . microtime(true));
}
} else {
$notification = $this->preparedCallNotifications[$languageCode];
if ($room->getToken() === 'c9bui2ju') {
\OC::$server->getLogger()->warning('Debugging step #7.2.reused.' . $languageCode . ': ' . microtime(true));
}
}
}

Expand Down

0 comments on commit 268ccf8

Please sign in to comment.