Adding (commented) log output
This commit is contained in:
parent
a88ad71be6
commit
e6ce9d3d29
@ -50,8 +50,15 @@ public:
|
|||||||
|
|
||||||
void handle_request(const Request& req, Reply& rep){
|
void handle_request(const Request& req, Reply& rep){
|
||||||
//parse command
|
//parse command
|
||||||
std::string request(req.uri);
|
std::string request(req.uri);
|
||||||
INFO( req.endpoint.to_string() << " " << request );
|
// time_t ltime;
|
||||||
|
// struct tm *Tm;
|
||||||
|
//
|
||||||
|
// ltime=time(NULL);
|
||||||
|
// Tm=localtime(<ime);
|
||||||
|
//
|
||||||
|
// INFO( Tm->tm_mday << "-" << (Tm->tm_mon < 10 ? "0" : "" ) << Tm->tm_mon << "-" << 1900+Tm->tm_year << " " << Tm->tm_hour << ":" << Tm->tm_min << ":" << Tm->tm_sec << " " <<
|
||||||
|
// req.endpoint.to_string() << " " << request );
|
||||||
std::string command;
|
std::string command;
|
||||||
std::size_t firstAmpPosition = request.find_first_of("?");
|
std::size_t firstAmpPosition = request.find_first_of("?");
|
||||||
command = request.substr(1,firstAmpPosition-1);
|
command = request.substr(1,firstAmpPosition-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user