From 7b8eb7391bcb1da545001c134a38173ebd78d042 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Mon, 10 Oct 2022 21:12:00 +0200 Subject: [PATCH] Watchdog: Log settings retrieval --- GlosSIWatchdog/dllmain.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GlosSIWatchdog/dllmain.cpp b/GlosSIWatchdog/dllmain.cpp index cc762a0..8cbb224 100644 --- a/GlosSIWatchdog/dllmain.cpp +++ b/GlosSIWatchdog/dllmain.cpp @@ -85,7 +85,12 @@ DWORD WINAPI watchdog(HMODULE hModule) auto http_res = http_client.Get("/settings"); if (http_res.error() == httplib::Error::Success && http_res->status == 200) { - Settings::Parse(nlohmann::json::parse(http_res->body)); + const auto json = nlohmann::json::parse(http_res->body); + spdlog::debug("Received settings from GlosSITarget: {}", json.dump()); + Settings::Parse(json); + } else + { + spdlog::error("Couldn't get settings from GlosSITarget."); }