Skip to content

bt: scan: only log scan results for pouch devices - #123

Merged
sam-golioth merged 1 commit into
mainfrom
less_verbose_scan_logging
Nov 26, 2025
Merged

bt: scan: only log scan results for pouch devices#123
sam-golioth merged 1 commit into
mainfrom
less_verbose_scan_logging

Conversation

@sam-golioth

Copy link
Copy Markdown
Contributor

With debug logging turned on, the scan results would overwhelm the log output.

Signed-off-by: Sam Friedman <sam@golioth.io>
Comment thread lib/bt/scan.c
struct bt_conn *conn = NULL;
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, BT_LE_CONN_PARAM_DEFAULT, &conn);
if (err)
if (version_is_compatible(&tf.adv_data) && sync_requested(&tf.adv_data))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks bigger than it is because I separated the version and flags check from the Pouch service UUID check, which resulted in some existing code being indented. With whitespace differences hidden, the diff is much smaller.

@sam-golioth
sam-golioth merged commit 3a5c47f into main Nov 26, 2025
10 checks passed
@sam-golioth
sam-golioth deleted the less_verbose_scan_logging branch November 26, 2025 17:11
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.

2 participants