summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/utils/syncdaemon/gsyncd.py
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-07-12 21:59:24 +0200
committerAnand Avati <avati@gluster.com>2011-07-28 02:58:46 -0700
commitfa979753d9fe27c6338a0d384d0f183ea716003d (patch)
treef66c9aea70e7e3225fa3dcf2b337a15d51bbefe2 /xlators/features/marker/utils/syncdaemon/gsyncd.py
parent06af690050b5b0ca4da34d4c89fda3d3deffe908 (diff)
gsyncd: log exit properly
Change-Id: Iedd8c0ce9dec2d8dcb01e0e5b409cb53185b1716 BUG: 2778 Reviewed-on: http://review.gluster.com/82 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushik BV <kaushikbv@gluster.com>
Diffstat (limited to 'xlators/features/marker/utils/syncdaemon/gsyncd.py')
-rw-r--r--xlators/features/marker/utils/syncdaemon/gsyncd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py
index a502c2009..313bfdb0a 100644
--- a/xlators/features/marker/utils/syncdaemon/gsyncd.py
+++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py
@@ -92,6 +92,7 @@ def startup(**kw):
else:
lkw['filename'] = kw['log_file']
GLogger.setup(label=kw.get('label'), **lkw)
+ gconf.log_exit = True
def main():
signal.signal(signal.SIGTERM, lambda *a: finalize(*a, **{'exval': 1}))
@@ -298,8 +299,6 @@ def main_i():
os.close(ffd)
local.service_loop(*[r for r in [remote] if r])
- logging.info("exiting.")
-
if __name__ == "__main__":
main()