Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shorten stack trace file paths #17671

Open
dereuromark opened this issue Apr 21, 2024 · 0 comments
Open

shorten stack trace file paths #17671

dereuromark opened this issue Apr 21, 2024 · 0 comments
Milestone

Comments

@dereuromark
Copy link
Member

dereuromark commented Apr 21, 2024

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

@dereuromark dereuromark added this to the 5.1.0 milestone Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant