diff options
Diffstat (limited to 'src/rgw/rgw_main.cc')
-rw-r--r-- | src/rgw/rgw_main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index a479343c2f5..7781690479b 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -43,7 +43,7 @@ #include "include/types.h" #include "common/BackTrace.h" -#define DOUT_SUBSYS rgw +#define dout_subsys ceph_subsys_rgw using namespace std; @@ -353,6 +353,9 @@ int main(int argc, const char **argv) cerr << "radosgw: must specify 'rgw socket path' to run as a daemon" << std::endl; exit(1); } + + g_ceph_context->_log->stop(); + childpid = fork(); if (childpid) { // i am the parent @@ -368,6 +371,8 @@ int main(int argc, const char **argv) if (r < 0) { dout(0) << "weird, i couldn't chdir to '" << g_conf->chdir << "'" << dendl; } + + g_ceph_context->_log->start(); } Mutex mutex("main"); SafeTimer init_timer(g_ceph_context, mutex); |