diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-10-11 07:01:30 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-10-11 07:01:30 +0000 |
commit | ac8d5034b4b1a5f7bc25c0b11886dfe998c94f11 (patch) | |
tree | 0dcbdbe7dae5209fb36d263c8f13f0ab0a75ac75 /searchcore | |
parent | de7a927242b1a326eecbc30e96af7ebc5440ca52 (diff) |
Add spam logging for get() and remove(), and log all input params for put().
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/summaryadapter.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/summaryadapter.cpp b/searchcore/src/vespa/searchcore/proton/server/summaryadapter.cpp index dd28938d7c6..7abf30de40a 100644 --- a/searchcore/src/vespa/searchcore/proton/server/summaryadapter.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/summaryadapter.cpp @@ -30,8 +30,8 @@ void SummaryAdapter::put(SerialNum serialNum, const DocumentIdT lid, const Document &doc) { if ( ! ignore(serialNum) ) { - LOG(spam, "SummaryAdapter::put(docId = '%s', lid = %u, document = '%s')", - doc.getId().toString().c_str(), lid, doc.toString(true).c_str()); + LOG(spam, "SummaryAdapter::put(serialnum = '%" PRIu64 "', lid = %u, docId = '%s', document = '%s')", + serialNum, lid, doc.getId().toString().c_str(), doc.toString(true).c_str()); _mgr->putDocument(serialNum, lid, doc); _lastSerial = serialNum; } @@ -52,6 +52,7 @@ void SummaryAdapter::remove(SerialNum serialNum, const DocumentIdT lid) { if ( ! ignore(serialNum + 1) ) { + LOG(spam, "SummaryAdapter::remove(serialnum = '%" PRIu64 "', lid = %u)", serialNum, lid); _mgr->removeDocument(serialNum, lid); _lastSerial = serialNum; } @@ -71,8 +72,12 @@ SummaryAdapter::getDocumentStore() const { } std::unique_ptr<Document> -SummaryAdapter::get(const DocumentIdT lid, const DocumentTypeRepo &repo) { - return imgr().getBackingStore().read(lid, repo); +SummaryAdapter::get(const DocumentIdT lid, const DocumentTypeRepo &repo) +{ + auto result = imgr().getBackingStore().read(lid, repo); + LOG(spam, "SummaryAdapter::get(lid = %u, docId = '%s', document = '%s')", + lid, (result ? result->getId().toString().c_str() : "null"), (result ? result->toString(true).c_str() : "null")); + return result; } void |