From 737cfc5d6a398a8f193f3e87339a31a81fb33db6 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Fri, 12 Apr 2024 21:59:41 +0200 Subject: [PATCH] rgw: increase log level on abort_early The function is typically invoked on client errors like NoSuchBucket. Logging these errors with level 1 may initially suggest a significant issue, when in fact it's just a client error. Consider raising the logging level to 20 for better clarity. Fixes: https://tracker.ceph.com/issues/65469 Signed-off-by: Seena Fallah (cherry picked from commit 302e3c459acdffe51fb73e902f2b3c828faa23e0) --- src/rgw/rgw_rest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 020309038eb..3a0652e82e2 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -679,13 +679,13 @@ void abort_early(req_state *s, RGWOp* op, int err_no, if (op != NULL) { int new_err_no; new_err_no = op->error_handler(err_no, &error_content, y); - ldpp_dout(s, 1) << "op->ERRORHANDLER: err_no=" << err_no + ldpp_dout(s, 20) << "op->ERRORHANDLER: err_no=" << err_no << " new_err_no=" << new_err_no << dendl; err_no = new_err_no; } else if (handler != NULL) { int new_err_no; new_err_no = handler->error_handler(err_no, &error_content, y); - ldpp_dout(s, 1) << "handler->ERRORHANDLER: err_no=" << err_no + ldpp_dout(s, 20) << "handler->ERRORHANDLER: err_no=" << err_no << " new_err_no=" << new_err_no << dendl; err_no = new_err_no; } -- 2.39.5