aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 21:32:08 +0200
committerStefan Boberg <[email protected]>2021-09-15 21:32:08 +0200
commit226233d813c96877669cf643c343ea0bfe0d4ba6 (patch)
tree59cfdece8b8efacae3c77f0bbb1fa8f537dfb04c /zenhttp/httpsys.cpp
parentAdded more context to missing chunk exceptions (diff)
downloadzen-226233d813c96877669cf643c343ea0bfe0d4ba6.tar.xz
zen-226233d813c96877669cf643c343ea0bfe0d4ba6.zip
Added some more trace-level logging
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 8ae4fa602..4536d0ed9 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -980,14 +980,20 @@ HttpSysTransaction::InvokeRequestHandler(HttpService& Service, IoBuffer Payload)
{
// Should yield bad request response?
+ ZEN_WARN("found invalid entry in offer");
+
continue;
}
- OfferCids.push_back(CidEntry.AsHash(IoHash::Zero));
+ OfferCids.push_back(CidEntry.AsHash());
}
+ ZEN_TRACE("request #{} -> filtering offer of {} entries", ThisRequest.RequestId(), OfferCids.size());
+
m_PackageHandler->FilterOffer(OfferCids);
+ ZEN_TRACE("request #{} -> filtered to {} entries", ThisRequest.RequestId(), OfferCids.size());
+
CbObjectWriter ResponseWriter;
ResponseWriter.BeginArray("need");