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
Showing
- daemons/ganeti-masterd 2 additions, 2 deletionsdaemons/ganeti-masterd
- daemons/ganeti-noded 2 additions, 2 deletionsdaemons/ganeti-noded
- daemons/ganeti-watcher 1 addition, 1 deletiondaemons/ganeti-watcher
- lib/cli.py 2 additions, 1 deletionlib/cli.py
- lib/constants.py 1 addition, 0 deletionslib/constants.py
- lib/logger.py 31 additions, 66 deletionslib/logger.py
- tools/burnin 1 addition, 1 deletiontools/burnin
Loading
Please register or sign in to comment