Skip to content

Cleanup: make BT/BLE logs less noisy#4749

Merged
mikeller merged 1 commit intomasterfrom
denoiseBLE
Mar 20, 2026
Merged

Cleanup: make BT/BLE logs less noisy#4749
mikeller merged 1 commit intomasterfrom
denoiseBLE

Conversation

@dirkhh
Copy link
Copy Markdown
Collaborator

@dirkhh dirkhh commented Mar 16, 2026

Especially when looking at logs from mobile devices the BLE messages tend to completely drown out all useful content. Let's try and pair this back a bit.

Describe the pull request:

  • Functional change

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Linux-AppImage-6.0.5569-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Android-6.0.5569-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Windows-MSVC-qt-6-6.0.5569-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Windows-6.0.5569-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

report_info("Paired = %s %s", qPrintable( btPairedDevices[i].name), qPrintable(btPairedDevices[i].address));
if (verbose)
for (int i = 0; i < btPairedDevices.length(); i++)
report_info("Paired = %s %s", qPrintable( btPairedDevices[i].name), qPrintable(btPairedDevices[i].address));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nitpick:

Suggested change
report_info("Paired = %s %s", qPrintable( btPairedDevices[i].name), qPrintable(btPairedDevices[i].address));
report_info("Paired = %s %s", qPrintable(btPairedDevices[i].name), qPrintable(btPairedDevices[i].address));

if (message.contains("Updating RSSI for") || (message.contains(QRegularExpression(".*kirigami.*onFoo properties in Connections"))))
if (message.contains("Updating RSSI for") ||
message.contains("Updating manufacturer data for") ||
message.contains("Almost Duplicate") ||
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sarcasm: Almost worth logging...

QHash<QString, QBluetoothDeviceInfo> btDeviceInfo;
QSet<QString> btMessages;
}
static bool dedupBtMessages(const QString &msg);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

question: Not quite sure why we need the forward declaration here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I got a weird error at compile time about a function with out declaration. I assumed it was a C++ thing I didn't understand, honestly.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

tried again and it's fine. force push incoming

Especially when looking at logs from mobile devices the BLE messages tend to
completely drown out all useful content. Let's try and pair this back a bit.

Signed-off-by: Dirk Hohndel <[email protected]>
@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Linux-AppImage-6.0.5571-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Android-6.0.5571-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Windows-MSVC-qt-6-6.0.5571-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@github-actions
Copy link
Copy Markdown

Artifacts:
Subsurface-Windows-6.0.5571-patch.1.pull-request.denoiseBLE
WARNING: Use at your own risk.

@mikeller mikeller merged commit ce17043 into master Mar 20, 2026
31 checks passed
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