Skip to content

Commit 009c806

Browse files
cagnuleinclaude
andauthored
Remove garmin_device_serial and garmin_email from debug logs (#4280)
These settings contain sensitive user information and should not be written to debug logs, similar to how password, token, and username are already filtered out. https://claude.ai/code/session_01Bb3K9KzcJGewehcn2x5RXe Co-authored-by: Claude <noreply@anthropic.com>
1 parent c22ee74 commit 009c806

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ int main(int argc, char *argv[]) {
657657
qInstallMessageHandler(myMessageOutput);
658658
qDebug() << QStringLiteral("version ") << app->applicationVersion();
659659
foreach (QString s, settings.allKeys()) {
660-
if (!s.contains(QStringLiteral("password")) && !s.contains("user_email") && !s.contains("username") && !s.contains("token")) {
660+
if (!s.contains(QStringLiteral("password")) && !s.contains("user_email") && !s.contains("username") && !s.contains("token") && !s.contains("garmin_device_serial") && !s.contains("garmin_email")) {
661661

662662
qDebug() << s << settings.value(s);
663663
}

0 commit comments

Comments
 (0)