diff --git a/lib/inc/drogon/HttpApiBinder.h b/lib/inc/drogon/HttpApiBinder.h index 59c7153d..45938dd4 100755 --- a/lib/inc/drogon/HttpApiBinder.h +++ b/lib/inc/drogon/HttpApiBinder.h @@ -82,7 +82,6 @@ namespace drogon{ HttpApiBinder(FUNCTION &&func): _func(std::forward(func)) { - //LOG_DEBUG<<"traits name:"< &filters) { std::string path=std::string("/")+HttpApiController::classTypeName(); - LOG_DEBUG<<"classname:"<::classTypeName(); + LOG_TRACE<<"classname:"<::classTypeName(); if(!methodName.empty()) { path.append("/"); diff --git a/lib/inc/drogon/HttpAppFramework.h b/lib/inc/drogon/HttpAppFramework.h index 6073af49..e867227e 100755 --- a/lib/inc/drogon/HttpAppFramework.h +++ b/lib/inc/drogon/HttpAppFramework.h @@ -75,7 +75,7 @@ namespace drogon FUNCTION && function, const std::vector &filters=std::vector()) { - LOG_DEBUG<<"pathPattern:"<::classTypeName()<<") on path:"<::classTypeName()<<") on path:"<::classTypeName(),path.second); } diff --git a/lib/inc/drogon/WebSocketController.h b/lib/inc/drogon/WebSocketController.h index d2eebeb8..385c3c53 100644 --- a/lib/inc/drogon/WebSocketController.h +++ b/lib/inc/drogon/WebSocketController.h @@ -72,7 +72,7 @@ namespace drogon for(auto path:vPaths) { - LOG_DEBUG<<"register websocket controller ("<::classTypeName()<<") on path:"<::classTypeName()<<") on path:"<::classTypeName(), path.second); diff --git a/lib/inc/drogon/utils/FunctionTraits.h b/lib/inc/drogon/utils/FunctionTraits.h index 23556632..65a0c8ba 100755 --- a/lib/inc/drogon/utils/FunctionTraits.h +++ b/lib/inc/drogon/utils/FunctionTraits.h @@ -1,3 +1,17 @@ +/** + * + * @file + * @author An Tao + * @section LICENSE + * + * Copyright 2018, An Tao. All rights reserved. + * Use of this source code is governed by a MIT license + * that can be found in the License file. + * + * @section DESCRIPTION + * + */ + #pragma once #include diff --git a/lib/inc/drogon/utils/Utilities.h b/lib/inc/drogon/utils/Utilities.h index 51ddb713..ae6222d7 100755 --- a/lib/inc/drogon/utils/Utilities.h +++ b/lib/inc/drogon/utils/Utilities.h @@ -1,3 +1,17 @@ +/** + * + * @file + * @author An Tao + * @section LICENSE + * + * Copyright 2018, An Tao. All rights reserved. + * Use of this source code is governed by a MIT license + * that can be found in the License file. + * + * @section DESCRIPTION + * + */ + #pragma once #include diff --git a/lib/src/HttpAppFrameworkImpl.cc b/lib/src/HttpAppFrameworkImpl.cc index f7fac301..04dc358a 100755 --- a/lib/src/HttpAppFrameworkImpl.cc +++ b/lib/src/HttpAppFrameworkImpl.cc @@ -66,7 +66,7 @@ void HttpAppFrameworkImpl::initRegex() { } if(regString.length()>0) regString.resize(regString.length()-1);//remove last '|' - LOG_DEBUG<<"regex string:"<0) @@ -626,7 +626,7 @@ void HttpAppFrameworkImpl::onAsyncRequest(const HttpRequestPtr& req,const std::f std::list paraList; for(auto p:params) { - LOG_DEBUG<getHeader("If-Modified-Since"); if(modiStr!=""&&modiStr==lastModified) { - LOG_DEBUG<<"not Modified!"; + LOG_TRACE<<"not Modified!"; resp->setStatusCode(HttpResponse::k304NotModified); return; } diff --git a/lib/src/HttpRequestImpl.cc b/lib/src/HttpRequestImpl.cc index cb006d76..f6a23778 100755 --- a/lib/src/HttpRequestImpl.cc +++ b/lib/src/HttpRequestImpl.cc @@ -93,10 +93,10 @@ void HttpRequestImpl::parsePremeter() } } - LOG_DEBUG<<"_parameters:"; + LOG_TRACE<<"_parameters:"; for(auto iter:_parameters) { - LOG_DEBUG<_dlMap[filename].mTime.tv_sec) #endif { - LOG_DEBUG<<"new csp file:"<runAfter(3.5,[=](){ - LOG_DEBUG<<"remove file "<