diff options
| author | Odd Stranne <odd@mullvad.net> | 2019-10-01 09:38:24 +0200 |
|---|---|---|
| committer | Odd Stranne <odd@mullvad.net> | 2019-10-04 10:03:17 +0200 |
| commit | ed1dd8aeb3397db734a4b59d9ce0ad95b08e2e47 (patch) | |
| tree | 93c950b93f0c4acdbfe111ca5e41c144b518e142 /windows/winnet/src | |
| parent | 52eab3818ba671cdd6991717413452d7fb86364b (diff) | |
| download | mullvadvpn-ed1dd8aeb3397db734a4b59d9ce0ad95b08e2e47.tar.xz mullvadvpn-ed1dd8aeb3397db734a4b59d9ce0ad95b08e2e47.zip | |
More efficient logging
Diffstat (limited to 'windows/winnet/src')
| -rw-r--r-- | windows/winnet/src/winnet/netmonitor.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/windows/winnet/src/winnet/netmonitor.cpp b/windows/winnet/src/winnet/netmonitor.cpp index a1e4c29bb6..861ec69f3e 100644 --- a/windows/winnet/src/winnet/netmonitor.cpp +++ b/windows/winnet/src/winnet/netmonitor.cpp @@ -299,11 +299,6 @@ void NetMonitor::LogOfflineState(std::shared_ptr<common::logging::ILogSink> logS { const auto &iface = table->Table[i]; - std::stringstream ss; - - ss << "Detailed interface logging" << std::endl; - ss << "Interface ordinal " << i << std::endl; - // // Don't flood the log with garbage. // @@ -335,19 +330,21 @@ void NetMonitor::LogOfflineState(std::shared_ptr<common::logging::ILogSink> logS if (blacklisted) { - ss << " filtered out to avoid flooding log"; - logSink->info(ss.str().c_str()); - continue; } + std::stringstream ss; + + ss << "Detailed interface logging" << std::endl; + ss << "Interface ordinal " << i << std::endl; + { const auto s = std::wstring(L" Alias: ").append(iface.Alias); ss << common::string::ToAnsi(s) << std::endl; } { - const auto s = std::wstring(L" \"Description\": ").append(iface.Description); + const auto s = std::wstring(L" Description: ").append(iface.Description); ss << common::string::ToAnsi(s) << std::endl; } |
