From 7779860d38725636fb5438e2f52e432994dc3926 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 22 Jul 2019 08:55:53 -0400 Subject: [PATCH] cls/journal: reduce verbosity of debug logs for non-errors Fixes: http://tracker.ceph.com/issues/40865 Signed-off-by: Jason Dillaman --- src/cls/journal/cls_journal.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cls/journal/cls_journal.cc b/src/cls/journal/cls_journal.cc index 146a6a0b892..5102b3ebf2d 100644 --- a/src/cls/journal/cls_journal.cc +++ b/src/cls/journal/cls_journal.cc @@ -55,8 +55,11 @@ int read_key(cls_method_context_t hctx, const string &key, T *t, bool ignore_enoent = false) { bufferlist bl; int r = cls_cxx_map_get_val(hctx, key, &bl); - if (r == -ENOENT && ignore_enoent) { - return 0; + if (r == -ENOENT) { + if (ignore_enoent) { + r = 0; + } + return r; } else if (r < 0) { CLS_ERR("failed to get omap key: %s", key.c_str()); return r; @@ -468,7 +471,7 @@ int journal_set_minimum_set(cls_method_context_t hctx, bufferlist *in, } if (current_active_set < object_set) { - CLS_ERR("active object set earlier than minimum: %" PRIu64 + CLS_LOG(10, "active object set earlier than minimum: %" PRIu64 " < %" PRIu64, current_active_set, object_set); return -EINVAL; } -- 2.39.5