diff options
| author | Stefan Boberg <[email protected]> | 2021-09-15 21:32:08 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-15 21:32:08 +0200 |
| commit | 226233d813c96877669cf643c343ea0bfe0d4ba6 (patch) | |
| tree | 59cfdece8b8efacae3c77f0bbb1fa8f537dfb04c /zenhttp/httpsys.cpp | |
| parent | Added more context to missing chunk exceptions (diff) | |
| download | zen-226233d813c96877669cf643c343ea0bfe0d4ba6.tar.xz zen-226233d813c96877669cf643c343ea0bfe0d4ba6.zip | |
Added some more trace-level logging
Diffstat (limited to 'zenhttp/httpsys.cpp')
| -rw-r--r-- | zenhttp/httpsys.cpp | 8 |
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"); |