mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:36:57 +02:00
Update env var logging to only include certain keys
This commit is contained in:
parent
1c1158b761
commit
03f9a02857
1 changed files with 9 additions and 3 deletions
|
@ -767,8 +767,14 @@ void printSystemInformation() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
qDebug() << "Environment Variables";
|
qDebug() << "Environment Variables";
|
||||||
auto envVariables = QProcessEnvironment::systemEnvironment().toStringList();
|
// List of env variables to include in the log. For privacy reasons we don't send all env variables.
|
||||||
for (auto& env : envVariables) {
|
const QStringList envWhitelist = {
|
||||||
qDebug().noquote().nospace() << "\t" << env;
|
"QTWEBENGINE_REMOTE_DEBUGGING"
|
||||||
|
};
|
||||||
|
auto envVariables = QProcessEnvironment::systemEnvironment();
|
||||||
|
for (auto& env : envWhitelist)
|
||||||
|
{
|
||||||
|
qDebug().noquote().nospace() << "\t" <<
|
||||||
|
(envVariables.contains(env) ? " = " + envVariables.value(env) : " NOT FOUND");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue