]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: provide different default values for 'debug rgw'
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 12 Mar 2012 20:18:39 +0000 (13:18 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 12 Mar 2012 20:21:27 +0000 (13:21 -0700)
Currently rgw and radosgw-admin require different chattiness
defaults.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
src/common/config_opts.h
src/rgw/rgw_main.cc

index 78052231525410f75c65c209b6e00a883e2c0c87..b41db96713d5fec37dab82bd6ab9abfdc5df4048 100644 (file)
@@ -356,7 +356,7 @@ OPTION(bdev_iov_max, OPT_INT, 512)            // max # iov's to collect into a s
 OPTION(bdev_debug_check_io_overlap, OPT_BOOL, true)  // [DEBUG] check for any pending io overlaps
 OPTION(bdev_fake_mb, OPT_INT, 0)
 OPTION(bdev_fake_max_mb, OPT_INT, 0)
-OPTION(debug_rgw, OPT_INT, 20)                 // log level for the Rados gateway
+OPTION(debug_rgw, OPT_INT, 1)                 // log level for the Rados gateway
 OPTION(rgw_cache_enabled, OPT_BOOL, true)   // rgw cache enabled
 OPTION(rgw_cache_lru_size, OPT_INT, 10000)   // num of entries in rgw cache
 OPTION(rgw_socket_path, OPT_STR, "")   // path to unix domain socket, if not specified, rgw will not run as external fcgi
index 9729355bbead5d9bfa436561a3657b94611016f2..4d04b44bc44ab314ccd729bd2be5662e1a3d5106 100644 (file)
@@ -337,10 +337,14 @@ int main(int argc, const char **argv)
     return ENOSYS;
   }
 
+  /* alternative default for module */
+  vector<const char *> def_args;
+  def_args.push_back("--debug-rgw=20");
+
   vector<const char*> args;
   argv_to_vec(argc, argv, args);
   env_to_vec(args);
-  global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
+  global_init(&def_args, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
              CINIT_FLAG_UNPRIVILEGED_DAEMON_DEFAULTS);
 
   pid_t childpid = 0;