summaryrefslogtreecommitdiff
path: root/src/env.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-26 06:18:13 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-26 06:18:13 -0500
commit7e1403dd28ec5141e7f4ca3aa6b0bb6e8b0375b0 (patch)
treed9c087d583f9071a2a8f277bce3c0cebebbd0ff4 /src/env.cpp
parente67381b4b8731d80a4f11fb441d46424b571a659 (diff)
simplified security products: don't log guids, remove duplicate entries
Diffstat (limited to 'src/env.cpp')
-rw-r--r--src/env.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/env.cpp b/src/env.cpp
index a23e65a4..b3f9525f 100644
--- a/src/env.cpp
+++ b/src/env.cpp
@@ -157,8 +157,18 @@ void Environment::dump(const Settings& s) const
}
log::debug("security products:");
- for (const auto& sp : securityProducts()) {
- log::debug(" . {}", sp.toString());
+
+ {
+ // ignore products with identical names, some AVs register themselves with
+ // the same names and provider, but different guids
+ std::set<QString> productNames;
+ for (const auto& sp : securityProducts()) {
+ productNames.insert(sp.toString());
+ }
+
+ for (auto&& name : productNames) {
+ log::debug(" . {}", name);
+ }
}
log::debug("modules loaded in process:");