-
Notifications
You must be signed in to change notification settings - Fork 583
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
Verbose logging of the peripheral GATT server content #355
Conversation
…verbose then structure of the: - services - characteristics - descriptors is printed in logs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A neat feat. Although I can imagine why it is checking for VERBOSE
level and prints a DEBUG
it is not very consistent.
Either should be .v(...)
or maybe we should have another flag? Let's discuss.
public void log(RxBleDeviceServices rxBleDeviceServices, BluetoothDevice device) { | ||
if (RxBleLog.isAtLeast(RxBleLog.VERBOSE)) { | ||
RxBleLog.v("Preparing services description"); | ||
RxBleLog.d(prepareServicesDescription(rxBleDeviceServices, device)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be .v(...)
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with .v
level. I'd go for an additional flag if this would require an operation to be performed for logging, so the user could decide about the flow. In this case (passive) I'd stick with verbose level. Would that be ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Just add the |
Done with the changelog. |
Extended logger for the peripheral GATT content. If the logger is set to verbose then structure of the:
is printed in logs.
Example output: