Skip to content
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

Bluetooth: Audio: Shell: Replace ctx_shell with logging #69739

Closed

Conversation

Thalley
Copy link
Collaborator

@Thalley Thalley commented Mar 4, 2024

Replace uses of ctx_shell with logging.
The ctx_shell is mostly (always?) used in callbacks,
where spending time to print directly may affect the behavior
of the stack, and should be avoided.

Logging has other advantages, such as following the order
of operations when also logging things from the stack.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Replace uses of ctx_shell with logging.
The ctx_shell is mostly (always?) used in callbacks,
where spending time to print directly may affect the behavior
of the stack, and should be avoided.

Logging has other advantages, such as following the order
of operations when also logging things from the stack.

Some features like the verbose logging of advertising data
have been slightly reworked to better work with the logging
system.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
Thalley added 2 commits March 5, 2024 13:08
Replace uses of ctx_shell with logging.
The ctx_shell is mostly (always?) used in callbacks,
where spending time to print directly may affect the behavior
of the stack, and should be avoided.
It also replaces uses of printk.

Logging has other advantages, such as following the order
of operations when also logging things from the stack.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
The ctx_shell have been replaced by (proper) logging
instead, and can now safely be removed.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
@Thalley Thalley force-pushed the bt_audio_shell_logging branch from 4ab3b9e to 673d06d Compare March 5, 2024 12:09
@Thalley Thalley self-assigned this Mar 15, 2024
@Thalley
Copy link
Collaborator Author

Thalley commented Apr 1, 2024

Closing this PR as this needs a better solution. Enhancement issue: #70945

@Thalley Thalley closed this Apr 1, 2024
@Thalley Thalley deleted the bt_audio_shell_logging branch July 10, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant