]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: adjust log levels
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 3 May 2017 22:08:22 +0000 (15:08 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:26:58 +0000 (13:26 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_sync_module_es.cc

index 5cc5a43a475cc4dbed75ab2dfda49e87025c68d6..eef63a57ce911b3f8673ba19ccb354c84aaedbf9 100644 (file)
@@ -2720,7 +2720,7 @@ int RGWConfigBucketMetaSearch_ObjStore_S3::get_params()
   auto iter = s->info.x_meta_map.find("x-amz-meta-search");
   if (iter == s->info.x_meta_map.end()) {
     s->err.message = "X-Rgw-Meta-Search header not provided";
-    ldout(s->cct, 20) << s->err.message << dendl;
+    ldout(s->cct, 5) << s->err.message << dendl;
     return -EINVAL;
   }
 
@@ -2733,12 +2733,12 @@ int RGWConfigBucketMetaSearch_ObjStore_S3::get_params()
 
     if (args.empty()) {
       s->err.message = "invalid empty expression";
-      ldout(s->cct, 20) << s->err.message << dendl;
+      ldout(s->cct, 5) << s->err.message << dendl;
       return -EINVAL;
     }
     if (args.size() > 2) {
       s->err.message = string("invalid expression: ") + expression;
-      ldout(s->cct, 20) << s->err.message << dendl;
+      ldout(s->cct, 5) << s->err.message << dendl;
       return -EINVAL;
     }
 
@@ -2750,7 +2750,7 @@ int RGWConfigBucketMetaSearch_ObjStore_S3::get_params()
 
     if (!boost::algorithm::starts_with(key, RGW_AMZ_META_PREFIX)) {
       s->err.message = string("invalid expression, key must start with '" RGW_AMZ_META_PREFIX "' : ") + expression;
-      ldout(s->cct, 20) << s->err.message << dendl;
+      ldout(s->cct, 5) << s->err.message << dendl;
       return -EINVAL;
     }
 
@@ -2766,7 +2766,7 @@ int RGWConfigBucketMetaSearch_ObjStore_S3::get_params()
       entity_type = ESEntityTypeMap::ES_ENTITY_DATE;
     } else {
       s->err.message = string("invalid entity type: ") + val;
-      ldout(s->cct, 20) << s->err.message << dendl;
+      ldout(s->cct, 5) << s->err.message << dendl;
       return -EINVAL;
     }
 
index 4842f8b90f57bdeeb664f047b9f1ab6feaaefcbc..bd11cba385efc6b56558e9794afc8115bd5cb9cf 100644 (file)
@@ -443,9 +443,9 @@ public:
                                                                                versioned_epoch(_versioned_epoch) {}
   int operate() override {
     reenter(this) {
-      ldout(sync_env->cct, 0) << ": stat of remote obj: z=" << sync_env->source_zone
-                              << " b=" << bucket_info.bucket << " k=" << key << " size=" << size << " mtime=" << mtime
-                              << " attrs=" << attrs << dendl;
+      ldout(sync_env->cct, 10) << ": stat of remote obj: z=" << sync_env->source_zone
+                               << " b=" << bucket_info.bucket << " k=" << key << " size=" << size << " mtime=" << mtime
+                               << " attrs=" << attrs << dendl;
       yield {
         string path = conf->get_obj_path(bucket_info, key);
         es_obj_metadata doc(sync_env->cct, conf, bucket_info, key, mtime, size, attrs, versioned_epoch);
@@ -496,8 +496,8 @@ public:
                                                         mtime(_mtime), conf(_conf) {}
   int operate() override {
     reenter(this) {
-      ldout(sync_env->cct, 0) << ": remove remote obj: z=" << sync_env->source_zone
-                              << " b=" << bucket_info.bucket << " k=" << key << " mtime=" << mtime << dendl;
+      ldout(sync_env->cct, 10) << ": remove remote obj: z=" << sync_env->source_zone
+                               << " b=" << bucket_info.bucket << " k=" << key << " mtime=" << mtime << dendl;
       yield {
         string path = conf->get_obj_path(bucket_info, key);