From 41e900199d7f369862b21b739dd11602d0d7c48d Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Mon, 16 Nov 2015 12:26:00 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/12583 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- geo-replication/syncdaemon/gsyncd.py | 1 + 1 file changed, 1 insertion(+) (limited to 'geo-replication/syncdaemon') 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: -- cgit