rust/bt-broadcast-assistant: Add debug logging

Add debug! and trace! logging throughout Broadcast Assistant,
delegator Peer wrapper, and BASS client to improve visibility into
broadcast source discovery, delegator connection, and BASS operations:
 - In assistant: log starting event stream, delegator scanning,
   delegator connection, BASS service discovery, and force-discovery
   calls.
 - In peer: log BASS client wrapper initialization, adding broadcast
   sources, updating synchronization, removing sources, sending
   broadcast codes, informing remote scan state, and processing BASS
   notification events.
 - In bt-bass: log BASS client characteristic discovery, BASS
   notifications on characteristic handles, and updated receive state.
 - Add unit tests in debug.rs verifying AssistantCmd::Verbose verbosity
   updates and scoped command execution with -v and -vv flags.

Test: cargo test -p bt-broadcast-assistant -p bt-bass
      cargo test --workspace
Change-Id: I9c4e875bd172feec7aaf2861c934e05d6a6a6964
Reviewed-on: https://bluetooth-review.googlesource.com/c/bluetooth/+/4122
5 files changed
tree: 7966ee4016581a979116cbb879ba31b559c6c55f
  1. .agents/
  2. docs/
  3. infra/
  4. rust/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. GEMINI.md
  9. LICENSE
  10. OWNERS
  11. PATENTS
  12. presubmit.sh
  13. README.md
README.md

Bluetooth Shared Libraries

What is this?

This is a repository for shared libraries and tools that can be useful for multiple Bluetooth stacks.

These tools and libraries are meant to be:

  • Stack-agnostic and platform-agnostic
  • Implement a useful subset of a published Bluetooth specification.

It has been started as a repository for developing Rust crates but can be easily expanded to include libraries and tools written in other languages.

What is this not?

It is not a full Bluetooth stack. Google has two officially open-source Bluetooth stacks:

Structure

  • rust - Rust Crates
  • docs - General documentation (documentation for each library/tool is included in their directories)