Unify SetupDaemon/SetupLogging
authorIustin Pop <iustin@google.com>
Wed, 30 Jul 2008 12:32:42 +0000 (12:32 +0000)
committerIustin Pop <iustin@google.com>
Wed, 30 Jul 2008 12:32:42 +0000 (12:32 +0000)
commit59f187eb9ec7d5065d9b974aeff08f0e57ad5b02
tree0eaaf45ec091bd45d56fd9f89ab54030acd214b6
parent9936bd6395c5c1ca7516b92a9f84edf6b07aedd5
Unify SetupDaemon/SetupLogging

The 'old-style' info, error, debug logs do not make much sense. This
patch unifies the SetupLogging and SetupDaemon functions. As a result,
all the commands logs to a 'commands.log' file.

The patch also changes the log setup to keep going if there's an error
in setting up the file logging but we're logging to stderr.

Also, burnin now logs to its own file (burnin.log).

Reviewed-by: ultrotter
daemons/ganeti-masterd
daemons/ganeti-noded
daemons/ganeti-watcher
lib/cli.py
lib/constants.py
lib/logger.py
tools/burnin