]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log exception 31876/head
authorJoas Schilling <coding@schilljs.com>
Thu, 7 Apr 2022 12:45:58 +0000 (14:45 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 7 Apr 2022 12:45:58 +0000 (14:45 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/legacy/OC_App.php

index 245bfe76d985c5afa054b6b8ff2744ec6fa5b48d..f290b7a610c67c262187527cb00c3de450212cbe 100644 (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) {