mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-12-02 11:47:56 +08:00
Modify log output
This commit is contained in:
parent
4ac5544a54
commit
b81584ff2e
@ -707,7 +707,7 @@ void HttpAppFrameworkImpl::onAsyncRequest(const HttpRequestPtr &req, const std::
|
|||||||
transform(filetype.begin(), filetype.end(), filetype.begin(), tolower);
|
transform(filetype.begin(), filetype.end(), filetype.begin(), tolower);
|
||||||
if (_fileTypeSet.find(filetype) != _fileTypeSet.end())
|
if (_fileTypeSet.find(filetype) != _fileTypeSet.end())
|
||||||
{
|
{
|
||||||
LOG_INFO << "file query!";
|
//LOG_INFO << "file query!";
|
||||||
std::string filePath = _rootPath + path;
|
std::string filePath = _rootPath + path;
|
||||||
std::shared_ptr<HttpResponseImpl> resp = std::make_shared<HttpResponseImpl>();
|
std::shared_ptr<HttpResponseImpl> resp = std::make_shared<HttpResponseImpl>();
|
||||||
//find cached response
|
//find cached response
|
||||||
@ -1059,7 +1059,7 @@ void HttpAppFrameworkImpl::onAsyncRequest(const HttpRequestPtr &req, const std::
|
|||||||
void HttpAppFrameworkImpl::readSendFile(const std::string &filePath, const HttpRequestPtr &req, const HttpResponsePtr &resp)
|
void HttpAppFrameworkImpl::readSendFile(const std::string &filePath, const HttpRequestPtr &req, const HttpResponsePtr &resp)
|
||||||
{
|
{
|
||||||
std::ifstream infile(filePath, std::ifstream::binary);
|
std::ifstream infile(filePath, std::ifstream::binary);
|
||||||
LOG_INFO << "send http file:" << filePath;
|
LOG_TRACE << "send http file:" << filePath;
|
||||||
if (!infile)
|
if (!infile)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user