]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
global: call config observers on global_init (and start logging!) 202/head
authorSage Weil <sage@inktank.com>
Sun, 7 Apr 2013 16:06:23 +0000 (09:06 -0700)
committerSage Weil <sage@inktank.com>
Sun, 7 Apr 2013 16:07:21 +0000 (09:07 -0700)
commita30917746614275baeb718e902133f06ef44fba6
tree36d92c46f946d94c427672fbf28d31846e187f30
parent1e7ddd9e9fb4ce97a1b17bb5fa52611132353490
global: call config observers on global_init (and start logging!)

Currently we don't start logging on daemon startup unless the log_file
parameter was adjusted by ceph.conf.  Instead, we should call all config
observers so that the logging subsystem is fully configured and we log
even prior to the daemonize and common_init_finish (when we call observers
again).  This fixes logging for the initial period before we daemonize.
For some of the daemons (osd, mon), this includes significant work.  It
also fixes the problem where users don't see the 'ceph version ...' banner
on daemon start.

Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
src/global/global_init.cc