diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-11-16 12:26:00 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-12-02 07:29:13 -0800 |
commit | 22c6724b72f57778a686bf8dafa4a495e6907316 (patch) | |
tree | 49486bca4d18aa9bfa0060d956f1ff2c7858ea66 /geo-replication/syncdaemon | |
parent | 803fb5df1022c684e7cdcf135f9199cb80d398fa (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: 1284737
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>
(cherry picked from commit 41e900199d7f369862b21b739dd11602d0d7c48d)
Reviewed-on: http://review.gluster.org/12723
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'geo-replication/syncdaemon')
-rw-r--r-- | geo-replication/syncdaemon/gsyncd.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py index d7e9486d09c..2146ab70762 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: |