Log exception

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-04-07 14:45:58 +02:00
parent a06ba88502
commit d96633916c
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -641,6 +641,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) {