Commit 096a3f97 authored by yangjian's avatar yangjian
Browse files

update logger

parent 0b0c3bef
...@@ -70,13 +70,16 @@ void AuthenticationStatusDocumentApiImpl::create_authentication_status(const std ...@@ -70,13 +70,16 @@ void AuthenticationStatusDocumentApiImpl::create_authentication_status(const std
} }
mysql_free_result(res); mysql_free_result(res);
// std::cout << query << std::endl;
if (mysql_real_query(mysql_WitcommUDRDB,query.c_str(), (unsigned long)query.size())) if (mysql_real_query(mysql_WitcommUDRDB,query.c_str(), (unsigned long)query.size()))
{ {
std::cout << "mysql_real_query failure!" << std::endl; Logger::udr_server().error("mysql create failure!");
return; return;
} }
to_json(j,authEvent);
std::string out = j.dump();
Logger::udr_server().debug("AuthenticationSubscription PATCH - json:\n\"%s\"",out.c_str());
response.send(Pistache::Http::Code::No_Content, ""); response.send(Pistache::Http::Code::No_Content, "");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment