summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-03-17 00:46:37 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-17 23:27:22 -0700
commit236600d7de4e900ad3905908853785dc2ac6629f (patch)
treeb98d8f5be40894022df4d73982c67f9ebdbc32c5
parent0a1f00cdcb087e00c184c62c1a9f22803c257cf2 (diff)
syncdaemon: don't try to set log level to None
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1570 (geosync related changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1570
-rw-r--r--xlators/features/marker/utils/syncdaemon/gsyncd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py
index 1920a05ec30..ba3141f6651 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)