Watchdog: Log settings retrieval

pull/192/head
Peter Repukat 2 years ago
parent 496b8fc146
commit 7b8eb7391b

@ -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.");
}

Loading…
Cancel
Save