diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-04-17 09:30:16 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-04-17 09:30:16 -0400 |
| commit | d49f038d5dc813796f8ae4e6ac1631e09bf06bf3 (patch) | |
| tree | 53ff0f009348f1df6a09385551a603fdbb7acd94 /src | |
| parent | 77d292727b06841f07b4b3bc449655faff5f5d19 (diff) | |
silenced a few annoying logs
Diffstat (limited to 'src')
| -rw-r--r-- | src/envmodule.cpp | 6 | ||||
| -rw-r--r-- | src/envsecurity.cpp | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/envmodule.cpp b/src/envmodule.cpp index 2ff5027d..5f2a5f5a 100644 --- a/src/envmodule.cpp +++ b/src/envmodule.cpp @@ -124,6 +124,12 @@ Module::FileInfo Module::getFileInfo() const return {}; } + if (e == ERROR_RESOURCE_DATA_NOT_FOUND) { + // not an error, no version information built into that module; + // happens often in wine + return {}; + } + log::error( "GetFileVersionInfoSizeW() failed on '{}', {}", m_path, formatSystemMessage(e)); diff --git a/src/envsecurity.cpp b/src/envsecurity.cpp index 6f4826e7..3060e6f5 100644 --- a/src/envsecurity.cpp +++ b/src/envsecurity.cpp @@ -108,7 +108,8 @@ private: &rawService); if (FAILED(res) || !rawService) { - log::error( + // don't log as error, seems to happen often for some people + log::debug( "locator->ConnectServer() failed for namespace '{}', {}", ns, formatSystemMessage(res)); @@ -392,7 +393,8 @@ std::optional<SecurityProduct> getWindowsFirewall() // testing for both because it's not clear which it is and nobody can // reproduce it if (hr != EPT_S_NOT_REGISTERED && hr != 0x800706d9) { - log::error("get_FirewallEnabled failed, {}", formatSystemMessage(hr)); + // don't log as error + log::debug("get_FirewallEnabled failed, {}", formatSystemMessage(hr)); } return {}; |
