diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2021-11-23 17:48:40 -0700 |
|---|---|---|
| committer | Chris Bessent <lost.dragonist@gmail.com> | 2021-11-23 17:48:40 -0700 |
| commit | 565f2fddf4cf29fec3f8626ae4f7acba8aef615c (patch) | |
| tree | 93b6970419bbdbd943db4e2bee4d7bb569325ef6 | |
| parent | 1d80c547d7c63b694fa79825e67694eae63749b2 (diff) | |
Blacklist %USERNAME% from the log in case it contains PII
| -rw-r--r-- | src/loglist.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/loglist.cpp b/src/loglist.cpp index bea7363f..172fcd64 100644 --- a/src/loglist.cpp +++ b/src/loglist.cpp @@ -359,6 +359,8 @@ void initLogging() log::getDefault().setCallback(
[](log::Entry e){ LogModel::instance().add(e); });
+ log::getDefault().addToBlacklist(getenv("USERNAME"), "USERNAME");
+
qInstallMessageHandler(qtLogCallback);
}
|
