From ca8997acaf01f185da1707f677bf1f7f23b5260f Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 15 Oct 2021 11:57:13 -0400 Subject: [PATCH] rgw: silence error message for nonexistent realm in a normal vstart cluster without a realm or period, every command prints this error message: 0 RGWPeriod::init failed to init realm id : (2) No such file or directory Signed-off-by: Casey Bodley --- src/rgw/rgw_zone.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index 9dd98d43f5d..a9f6ecfd9c9 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -1009,7 +1009,7 @@ int RGWPeriod::init(const DoutPrefixProvider *dpp, RGWRealm realm(realm_id, realm_name); int ret = realm.init(dpp, cct, sysobj_svc, y); if (ret < 0) { - ldpp_dout(dpp, 0) << "RGWPeriod::init failed to init realm " << realm_name << " id " << realm_id << " : " << + ldpp_dout(dpp, 4) << "RGWPeriod::init failed to init realm " << realm_name << " id " << realm_id << " : " << cpp_strerror(-ret) << dendl; return ret; }