debug: say 'append' or 'new' when opening log

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2010-07-20 10:36:35 -07:00
parent 2483096e66
commit 538ceedcc8

View File

@ -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;