mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 17:51:07 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user