diff options
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/gsyncd.py | 4 |
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) |