-
Notifications
You must be signed in to change notification settings - Fork 104
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 prefix for DEBUG_ERROR prints for data analysing purpose #516
Add prefix for DEBUG_ERROR prints for data analysing purpose #516
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/202311 #516 +/- ##
==================================================
- Coverage 11.03% 11.03% -0.01%
==================================================
Files 144 144
Lines 22037 22042 +5
Branches 2356 2356
==================================================
Hits 2432 2432
- Misses 19573 19578 +5
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I don't think this adds value. DEBUG_ERROR gets used in a lot of places for things that aren't actual errors. Adding something like this will only cause spurious errors to get reported. At the end of the day, nothing will beat high quality print statements and actually analyzing a log. |
That's my main concern. I could maybe see this being controlled by a platform with something like |
Thanks Oliver and Michael, I think it's a good point that DEBUG_ERROR is often used in non error cases(kind of a routine), I was planning to do either cleaning up non-error debug errors + provide an ignore file that includes all non-error ones, so we can get really useful results, or I go and add error: into the real errors like some of them already have right now(non consistent format of print statements) and use error: as the keyword. Both will take time but I think if it's finished properly, it will really add values to our detailed uefi logs. Now the uefi logs are gold that's hard to mine, Errors that don't block boot will be very hard to be found as no one notices in the tens of thousands of lines of log. The pcd idea is sth worth a trial if everyone likes it. |
Hi @os-d @makubacki Oliver and Michael, I had an offline talk with Kun @kuqin12 and he mentioned a better way to use the existing debug_level in the metadata and in this way, we don't need to touch the firmware itself. I have tried with it and it's working perfectly fine, we got all the debug levels printed out. |
Closing the PR. |
Description
Add prefix for DEBUG_ERROR prints for data analysing purpose
DEBUG_ERROR level prints are generally very important and worth analyzing. One blocking thing now is that we can't tell the difference between different debug level msgs because not all DEBUG_ERROR will have an "error:" as the prefix of the debug msg. This PR is to add a non-used keyword so we can easily track the DEBUG_ERRORs.
flow, or firmware?
validation improvement, ...
in build or boot behavior?
a function in a new library class in a pre-existing module, ...
outside direct code modifications (and comments)?
on an a separate Web page, ...
How This Was Tested
Tested with a platform that uses advancedlogger and can see [LOG_ERROR] in front of every debug_error msg.
Integration Instructions
N/A