summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2015-11-16 12:26:00 +0530
committerVijay Bellur <vbellur@redhat.com>2015-11-23 09:55:22 -0800
commit41e900199d7f369862b21b739dd11602d0d7c48d (patch)
tree4da3f5dfda5861b077ac45754ab57b969f6bb941
parentd47323d0e6f543a8ece04c32b8d77d2785390c3c (diff)
geo-rep: Fix Geo-rep logging to log datetime in GMT/UTC
Geo-rep is logging in Local time, all other Gluster logs are in GMT/UTC. It is very difficult to co-relate Geo-rep logs with other Gluster logs. BUG: 1282331 Change-Id: Ieae8bda7e4788e587cf4595e21e0e772c210cfbb Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/12583 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--geo-replication/syncdaemon/gsyncd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py
index 1a812ca8710..ef6db744e46 100644
--- a/geo-replication/syncdaemon/gsyncd.py
+++ b/geo-replication/syncdaemon/gsyncd.py
@@ -73,6 +73,7 @@ class GLogger(Logger):
logging.setLoggerClass(cls)
logging.getLogger().handlers = []
logging.getLogger().setLevel(lprm['level'])
+ logging.Formatter.converter = time.gmtime # Log in GMT/UTC time
if 'filename' in lprm:
try: