-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add error context #17976
base: 5.x
Are you sure you want to change the base?
Add error context #17976
Conversation
Can you give an e.g. of error message without file and line number? I already see them in the error messages in the log file, for e.g.:
|
Old:
New:
Triggered by: |
This was inconsistent between the log messages |
So you are directly using the PHP function instead of the Cake function |
Not me, but libs i use.
Will add fix for the duplicity |
Oh i see the problem. Each trigger_error used in cakephp has the file and line added where they are called. I would like to make some function that will format it same way (When it is called or when it is outside cakephp, in ErrorTrap), so it can be parsed programatically. Now each type of error has own format. Any ideas? |
The file/line could be removed from |
Sounds like this should go into 5.next then, right? With such changes. |
This doesn't change the public API and making the log output consistent is more of a bigfix than a new feature. |
I will try to make it next week :) |
@Harfusha The next patch release is imminent in case you want to fit it into that one still. |
#17975