From db9a18401486565448b262b2a2fdedd7d0abf9c2 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Thu, 12 May 2022 08:49:58 -0700 Subject: [PATCH] Framework update. --- build | 2 +- src/RESTAPI/RESTAPI_action_links.cpp | 5 ++--- src/framework/MicroService.h | 9 ++++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/build b/build index 8783e30..43c451e 100644 --- a/build +++ b/build @@ -1 +1 @@ -53 \ No newline at end of file +54 \ No newline at end of file diff --git a/src/RESTAPI/RESTAPI_action_links.cpp b/src/RESTAPI/RESTAPI_action_links.cpp index dd017d4..c5d3d93 100644 --- a/src/RESTAPI/RESTAPI_action_links.cpp +++ b/src/RESTAPI/RESTAPI_action_links.cpp @@ -206,15 +206,14 @@ namespace OpenWifi { {"operation", "emailVerified"} }, Body,30000); - Logger().information(fmt::format("({}): Completed subscriber e-mail verification and password.",UInfo.email)); Poco::JSON::Object::Ptr Response; auto Status = ProvRequest.Do(Response); std::stringstream ooo; if(Response!= nullptr) Response->stringify(ooo); - Logger().information(fmt::format("({}): Status: {}, Completed subscriber e-mail verification. Provisioning notified. {}", - UInfo.email, Status, ooo.str())); + Logger().information(fmt::format("({}): Completed subscriber e-mail verification. Provisioning notified, Error={}.", + UInfo.email, Status)); SendHTMLFileBack(FormFile,FormVars); Logger().information(fmt::format("({}): Completed subscriber e-mail verification. FORM notified.",UInfo.email)); } else { diff --git a/src/framework/MicroService.h b/src/framework/MicroService.h index 088c780..966785e 100644 --- a/src/framework/MicroService.h +++ b/src/framework/MicroService.h @@ -4389,7 +4389,7 @@ namespace OpenWifi { Path, Poco::Net::HTTPMessage::HTTP_1_1); - Poco::Logger::get("REST-CALLER-GET").information(fmt::format(" {}", URI.toString())); + Poco::Logger::get("REST-CALLER-GET").debug(fmt::format(" {}", URI.toString())); if(BearerToken.empty()) { Request.add("X-API-KEY", Svc.AccessKey); @@ -4441,14 +4441,13 @@ namespace OpenWifi { for(auto const &Svc:Services) { Poco::URI URI(Svc.PrivateEndPoint); - auto Secure = (URI.getScheme() == "https"); URI.setPath(EndPoint_); for (const auto &qp : QueryData_) URI.addQueryParameter(qp.first, qp.second); - Poco::Logger::get("REST-CALLER-PUT").information(fmt::format("{}", URI.toString())); + Poco::Logger::get("REST-CALLER-PUT").debug(fmt::format("{}", URI.toString())); std::string Path(URI.getPathAndQuery()); @@ -4527,7 +4526,7 @@ namespace OpenWifi { for (const auto &qp : QueryData_) URI.addQueryParameter(qp.first, qp.second); - Poco::Logger::get("REST-CALLER-POST").information(fmt::format(" {}", URI.toString())); + Poco::Logger::get("REST-CALLER-POST").debug(fmt::format(" {}", URI.toString())); std::string Path(URI.getPathAndQuery()); @@ -4603,7 +4602,7 @@ namespace OpenWifi { for (const auto &qp : QueryData_) URI.addQueryParameter(qp.first, qp.second); - Poco::Logger::get("REST-CALLER-DELETE").information(fmt::format(" {}", URI.toString())); + Poco::Logger::get("REST-CALLER-DELETE").debug(fmt::format(" {}", URI.toString())); std::string Path(URI.getPathAndQuery());