From 236600d7de4e900ad3905908853785dc2ac6629f Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 17 Mar 2011 00:46:37 +0000 Subject: syncdaemon: don't try to set log level to None Signed-off-by: Csaba Henk Signed-off-by: Vijay Bellur BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570 --- xlators/features/marker/utils/syncdaemon/gsyncd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/features/marker/utils') diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py index 1920a05ec..ba3141f66 100644 --- a/xlators/features/marker/utils/syncdaemon/gsyncd.py +++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py @@ -111,7 +111,9 @@ def startup(**kw): select.select((x,), (), ()) os.close(x) - lkw = {'level': gconf.log_level} + lkw = {} + if gconf.log_level: + lkw['level'] = gconf.log_level if kw.get('log_file'): lkw['filename'] = kw['log_file'] GLogger.setup(slave=kw.get('slave'), **lkw) -- cgit