fix: redact sensitive data from debug logs (#18)

Remove logging of method arguments. It may contain private keys,
DB passwords, auth tokens, and token values. Log only method
names and argument counts for debugging.

- https://github.com/status-im/infra-logos/issues/1
This commit is contained in:
Vedran
2026-02-25 09:15:39 -05:00
committed by GitHub
parent 4fdf157120
commit 5c49a0d6a4
3 changed files with 20 additions and 29 deletions
+2 -2
View File
@@ -211,7 +211,7 @@ bool ModuleProxy::saveToken(const QString& from_module_name, const QString& toke
qDebug() << "ModuleProxy: Saving token for module:" << from_module_name;
m_tokens[from_module_name] = token;
qDebug() << "ModuleProxy: Token saved successfully. Total tokens stored:" << m_tokens.size();
return true;
}
@@ -264,7 +264,7 @@ QVariant ModuleProxy::callRemoteMethod(const QString& authToken, const QString&
// print keys vand values for debug purposes
QList<QString> keys = tokenManager->getTokenKeys();
for (const QString& key : keys) {
qDebug() << "ModuleProxy: Token key:" << key << "value:" << tokenManager->getToken(key);
qDebug() << "ModuleProxy: Token key:" << key;
}
// check if authToken is valid