From 585805a754650d1d855d5341735e7fe112dddcac Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Sat, 8 Nov 2014 02:15:19 +1100 Subject: [PATCH] Add logging of http requests --- src/storage/http_request.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/http_request.cpp b/src/storage/http_request.cpp index 46b1d5e19..e73a3b8f6 100644 --- a/src/storage/http_request.cpp +++ b/src/storage/http_request.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include @@ -22,6 +23,8 @@ struct CacheRequestBaton { HTTPRequest::HTTPRequest(ResourceType type_, const std::string &path_, uv_loop_t *loop_, util::ptr store_) : BaseRequest(path_), thread_id(uv_thread_self()), loop(loop_), store(store_), type(type_) { + Log::Error(Event::HttpRequest, "HTTPRequest %s", path.c_str()); + if (store) { startCacheRequest(); } else {