diff --git a/examples/simple_example/TestController.cc b/examples/simple_example/TestController.cc index e4e6c98b..00dc026a 100755 --- a/examples/simple_example/TestController.cc +++ b/examples/simple_example/TestController.cc @@ -4,9 +4,6 @@ void TestController::asyncHandleHttpRequest(const HttpRequestPtr& req,const std: { //write your application logic here auto resp=HttpResponse::newHttpResponse(); - LOG_DEBUG<<"!!!!!!!!!!1"; - resp->setStatusCode(HttpResponse::k200OK); - resp->setContentTypeCode(CT_TEXT_HTML); - resp->setBody("hello!!!"); + resp->setBody("

Hello, world!

"); callback(resp); } \ No newline at end of file diff --git a/examples/simple_example/main.cc b/examples/simple_example/main.cc index ca9ad76f..0cfc5da9 100755 --- a/examples/simple_example/main.cc +++ b/examples/simple_example/main.cc @@ -92,7 +92,7 @@ int main() // drogon::HttpAppFramework::instance().addListener("0.0.0.0",4431,true); //#endif drogon::HttpAppFramework::instance().setThreadNum(4); - trantor::Logger::setLogLevel(trantor::Logger::TRACE); + trantor::Logger::setLogLevel(trantor::Logger::DEBUG); //class function drogon::HttpAppFramework::registerHttpApiMethod("/api/v1/handle1/{1}/{2}/?p3={3}&p4={4}",&A::handle); //lambda example