From ca3c43d12562b2211c4130e27c01350c5d74012e Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Sun, 24 Sep 2023 11:17:37 -0700 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-12954 Signed-off-by: stephb9959 --- src/APStats.cpp | 10 +++++----- src/HealthReceiver.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/APStats.cpp b/src/APStats.cpp index 8abb9ad..478e170 100644 --- a/src/APStats.cpp +++ b/src/APStats.cpp @@ -112,7 +112,7 @@ namespace OpenWifi { DI_.connected = true; AnalyticsObjects::DeviceTimePoint DTP; - poco_information(Logger(), fmt::format("{}: stats message.", DI_.serialNumber)); + poco_trace(Logger(), fmt::format("{}: stats message.", DI_.serialNumber)); // find radios first to get associations. try { @@ -573,7 +573,7 @@ namespace OpenWifi { try { if (Connection->contains("ping")) { got_connection = true; - poco_debug(Logger(), fmt::format("{}: ping message.", DI_.serialNumber)); + poco_trace(Logger(), fmt::format("{}: ping message.", DI_.serialNumber)); DI_.connected = true; DI_.lastPing = Utils::Now(); auto ping = (*Connection)["ping"]; @@ -589,13 +589,13 @@ namespace OpenWifi { } } } else if (Connection->contains("disconnection")) { - poco_debug(Logger(), fmt::format("{}: disconnection message.", DI_.serialNumber)); + poco_trace(Logger(), fmt::format("{}: disconnection message.", DI_.serialNumber)); auto Disconnection = (*Connection)["disconnection"]; GetJSON("timestamp", Disconnection, DI_.lastDisconnection, (uint64_t)0); got_base = got_health = got_connection = false; DI_.connected = false; } else if (Connection->contains("capabilities")) { - poco_debug(Logger(), fmt::format("{}: connection message.", DI_.serialNumber)); + poco_trace(Logger(), fmt::format("{}: connection message.", DI_.serialNumber)); got_connection = true; DI_.connected = true; DI_.lastConnection = Utils::Now(); @@ -621,7 +621,7 @@ namespace OpenWifi { got_health = true; GetJSON("timestamp", *Health, DI_.lastHealth, (uint64_t)0); GetJSON("sanity", *Health, DI_.health, (uint64_t)0); - poco_debug(Logger(), fmt::format("{}: health message.", DI_.serialNumber)); + poco_trace(Logger(), fmt::format("{}: health message.", DI_.serialNumber)); } catch (...) { poco_information(Logger(), fmt::format("{}: error parsing health message.", DI_.serialNumber)); diff --git a/src/HealthReceiver.cpp b/src/HealthReceiver.cpp index b1d23a0..e64631f 100644 --- a/src/HealthReceiver.cpp +++ b/src/HealthReceiver.cpp @@ -78,7 +78,7 @@ namespace OpenWifi { void HealthReceiver::HealthReceived(const std::string &Key, const std::string &Payload) { std::lock_guard G(Mutex_); - poco_debug(Logger(), fmt::format("Device({}): Health message.", Key)); + poco_trace(Logger(), fmt::format("Device({}): Health message.", Key)); Queue_.enqueueNotification(new HealthMessage(Key, Payload)); } } // namespace OpenWifi \ No newline at end of file