fix: redact sensitive data from debug logs

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:
2026-02-25 10:03:44 +01:00
parent 30ef7986f4
commit f47b339b0e
3 changed files with 20 additions and 29 deletions
+2 -2
View File
@@ -199,7 +199,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;
}
@@ -252,7 +252,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