From 565083ef988321379fc984f8cab33bba3bd57d69 Mon Sep 17 00:00:00 2001
From: Luca Bigliardi <shammash@google.com>
Date: Thu, 13 May 2010 13:58:31 +0100
Subject: [PATCH] Use console_logging in node daemon

Node daemon logs will be printed on system console if writing on the log file
fails.

Signed-off-by: Luca Bigliardi <shammash@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 daemons/ganeti-noded | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/daemons/ganeti-noded b/daemons/ganeti-noded
index 712d9c489..76fcb1b42 100755
--- a/daemons/ganeti-noded
+++ b/daemons/ganeti-noded
@@ -882,7 +882,8 @@ def main():
   dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS]
   dirs.append((constants.LOG_OS_DIR, 0750))
   dirs.append((constants.LOCK_DIR, 1777))
-  daemon.GenericMain(constants.NODED, parser, dirs, CheckNoded, ExecNoded)
+  daemon.GenericMain(constants.NODED, parser, dirs, CheckNoded, ExecNoded,
+                     console_logging=True)
 
 
 if __name__ == '__main__':
-- 
GitLab