From d7fd9a9d900a7ab0568badc5ec67f188556536e0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 10 Apr 2024 09:59:34 +0200 Subject: [PATCH] debug: More logging Signed-off-by: Joas Schilling --- lib/Notification/Listener.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Notification/Listener.php b/lib/Notification/Listener.php index 7be4837c76b..f0f7a103782 100644 --- a/lib/Notification/Listener.php +++ b/lib/Notification/Listener.php @@ -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 { @@ -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)); + } } }