mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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
|
||||
|
||||
qDebug() << "Environment Variables";
|
||||
auto envVariables = QProcessEnvironment::systemEnvironment().toStringList();
|
||||
for (auto& env : envVariables) {
|
||||
qDebug().noquote().nospace() << "\t" << env;
|
||||
// List of env variables to include in the log. For privacy reasons we don't send all env variables.
|
||||
const QStringList envWhitelist = {
|
||||
"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