diff --git a/lib/Push.php b/lib/Push.php index 582c91a4f..2af81422e 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -455,7 +455,12 @@ protected function sendNotificationsToProxies(): void { $requestData['headers']['X-Nextcloud-Subscription-Key'] = $subscriptionKey; } + $postStartTime = microtime(true); $response = $client->post($proxyServer . '/notifications', $requestData); + $postEndTime = microtime(true); + + $this->printInfo('Request to push proxy [' . $proxyServer . '] took ' . (string)round($postEndTime - $postStartTime, 2) . 's'); + $status = $response->getStatusCode(); $body = (string)$response->getBody(); try {