cakephp/cakephp

shorten stack trace file paths

Opened this issue · 0 comments

Description

In the logs, often the trace is unnecessarily long:

Stack Trace:
- /home/clients/f6204f36e6ee43c547b7635b726cb6Xf/sites/test.xyz.com/src/Model/Table/EventsTable.php:414
- /home/clients/f6204f36e6ee43c547b7635b726cb6Xf/sites/test.xyz.com/src/Controller/Api/EventsController.php:58
- ....

Whereas the path to ROOT is clear and repeating all the time

Could we just provide it by replacing ROOT with empty string?

Stack Trace:
- vendor/...
- src/Model/Table/EventsTable.php:414
- src/Controller/Api/EventsController.php:58
- ....

etc?

Makes it also more readable if the length doesn't quite fit on the screen otherwise.

CakePHP Version

5.x