summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/gsyncd.py
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/gsyncd.py')
-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 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)