-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add error context #17976
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
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. |
|
I dont have any time to do this right now. I will do it when i will have free time to do this |
|
Ping @Harfusha |
|
I'm very sorry but i don't have any free time anytime soon. |
|
@markstory what's needed here to continue? Maybe the core team could finish this one up. |
with error logging context being added by ErrorTrap, we don't need to do it within `triggerError` which is now a simple alias.
|
@dereuromark Updated with what I had suggested. It does change behavior a bit as |
|
Do we want to move forward with this? |
#17975