aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-06-08 10:16:51 +0200
committerGitHub <noreply@github.com>2022-06-08 10:16:51 +0200
commit9a8c9e5cf6276fc4cbb78d5afa86b8a0fb451597 (patch)
treee70ab6e653d7f423215db6a7692775fac3ce5f6d /apps
parentc9bee7e3092e9c1365ec65368651912f478ed406 (diff)
parent1cc2796613808dac5a2b444fc313b6a9fab0798b (diff)
downloadnextcloud-server-9a8c9e5cf6276fc4cbb78d5afa86b8a0fb451597.tar.gz
nextcloud-server-9a8c9e5cf6276fc4cbb78d5afa86b8a0fb451597.zip
Merge pull request #32744 from nextcloud/bugfix/noid/easier-federation-debugging
Always log errors from sending federation api requests to ease debugging
Diffstat (limited to 'apps')
-rw-r--r--apps/cloud_federation_api/lib/Controller/RequestHandlerController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
index 02105fb3f9c..53448119af3 100644
--- a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
+++ b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php
@@ -199,6 +199,7 @@ class RequestHandlerController extends Controller {
$e->getCode()
);
} catch (\Exception $e) {
+ $this->logger->error($e->getMessage(), ['exception' => $e]);
return new JSONResponse(
['message' => 'Internal error at ' . $this->urlGenerator->getBaseUrl()],
Http::STATUS_BAD_REQUEST