From 538ceedcc81773d09a9bd50509092c71400c8d91 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 20 Jul 2010 10:36:35 -0700 Subject: [PATCH] debug: say 'append' or 'new' when opening log Signed-off-by: Sage Weil --- src/common/debug.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/debug.cc b/src/common/debug.cc index ed023dcd4ae..f1c46a57c96 100644 --- a/src/common/debug.cc +++ b/src/common/debug.cc @@ -161,7 +161,9 @@ void _dout_open_log() _dout_need_open = false; _dout_is_open = true; _dout = &_dout_out; - *_dout << g_clock.now() << " --- " << getpid() << " opened log " << _dout_path << " ---" << std::endl; + *_dout << g_clock.now() << " --- " << getpid() + << (g_conf.log_per_instance ? " created new log " : " appending to log ") + << _dout_path << " ---" << std::endl; } *_dout << "ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;