summaryrefslogtreecommitdiff
path: root/src
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
parente67381b4b8731d80a4f11fb441d46424b571a659 (diff)
simplified security products: don't log guids, remove duplicate entries
Diffstat (limited to 'src')
-rw-r--r--src/env.cpp14
-rw-r--r--src/envsecurity.cpp7
2 files changed, 12 insertions, 9 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:");
diff --git a/src/envsecurity.cpp b/src/envsecurity.cpp
index 6d62728b..87db98ce 100644
--- a/src/envsecurity.cpp
+++ b/src/envsecurity.cpp
@@ -207,13 +207,6 @@ QString SecurityProduct::toString() const
s += ", definitions outdated";
}
- // all products have a guid, but the windows firewall is not actually a real
- // one from wmi, it's queried independently in getWindowsFirewall() and has a
- // null guid, so just don't log it
- if (!m_guid.isNull()) {
- s += ", " + m_guid.toString(QUuid::QUuid::WithoutBraces);
- }
-
return s;
}