aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp')
-rw-r--r--searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp b/searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp
deleted file mode 100644
index 260b0c8a7af..00000000000
--- a/searchcore/src/apps/vespa-feed-bm/storage_reply_error_checker.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-#include "storage_reply_error_checker.h"
-#include <vespa/storageapi/messageapi/storagereply.h>
-
-#include <vespa/log/log.h>
-LOG_SETUP(".storage_reply_error_checker");
-
-namespace feedbm {
-
-StorageReplyErrorChecker::StorageReplyErrorChecker()
- : _errors(0u)
-{
-}
-
-StorageReplyErrorChecker::~StorageReplyErrorChecker() = default;
-
-void
-StorageReplyErrorChecker::check_error(const storage::api::StorageMessage &msg)
-{
- auto reply = dynamic_cast<const storage::api::StorageReply*>(&msg);
- if (reply != nullptr) {
- if (reply->getResult().failed()) {
- if (++_errors <= 10) {
- LOG(info, "reply '%s', return code '%s'", reply->toString().c_str(), reply->getResult().toString().c_str());
- }
- }
- } else {
- ++_errors;
- }
-}
-
-}