From 8f771993664804d530abc8cfbb9c1b3e25f74df4 Mon Sep 17 00:00:00 2001 From: Joas Schilling <coding@schilljs.com> Date: Thu, 7 Apr 2022 14:45:58 +0200 Subject: Log exception Signed-off-by: Joas Schilling <coding@schilljs.com> --- lib/private/legacy/OC_App.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/private') diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index 42910fd3cd2..fef5bec6ab0 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -640,6 +640,7 @@ class OC_App { $path_info = $request->getPathInfo(); } catch (Exception $e) { // Can happen from unit tests because the script name is `./vendor/bin/phpunit` or something a like then. + \OC::$server->get(LoggerInterface::class)->error('Failed to detect current app from script path', ['exception' => $e]); return ''; } if ($path_info) { -- cgit v1.2.3