-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove excessive info and debug prints in SPIF driver #10501
Conversation
@davidsaada, thank you for your changes. |
@davidsaada - I would personally keep most of those logs. Also, the thumb rule for me is keep INFO logs for critical stages that occur in low frequency (such as once in init). There are here a few INFO logs that are placed in higher frequency functions, such as erase, I would remove them and keep the rest.. but again its a question of trace logging strategy.. Thanks |
Tend to agree, however this is way above the scope of this PR. Currently, all info and debug traces are enabled by default by client code, which is the trigger for the problem this PR answers. |
I would suggest that all Mbed OS drivers would have For. ex. how ESP8266 is enabling AT-level debug traces: |
lo and behold.. mbed-os has exactly this framework : |
instead of removing, rather disabling it in this PR. Or is there still an issue? |
The logs may be useful, but not when they are printed in all debug/develop builds. I'm very much for having the per-module-config in mbed_lib.json as suggested, disabled by default. |
@davidsaada please update |
Sorry for not getting back to your comments earlier. Been a bit busy. |
Sorry, double checked with client folks. Apparently |
What is going to be the final fix? Currently this PR is removing all those traces, so I am fine with that. IMHO enabling those traces even on tr_debug() level is too much, as this is comparable of Mbed TLS enabling its debug-logs by default for all customers. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
The logs are switched of by default and can be enabled with a module-specific compile switch in mbed_app.json. Brought back from PR ARMmbed#10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Brought back from PR ARMmbed#10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR ARMmbed#10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR ARMmbed#10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR #10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR #10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR #10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR #10501
The logs are switched off by default and can be enabled with a module-specific compile switch in mbed_app.json. Logs brought back from PR ARMmbed#10501
Description
Remove excessive info and debug prints in SPIF driver.
Pull request type
Reviewers
@teetak01