فهرست منبع

[core] Print log time to the same timezone set in hue.ini

Removing the +0000 that means GMT as we already print according
to the current time set in hue.ini.
Romain Rigaux 12 سال پیش
والد
کامیت
54233be
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 2 2
      desktop/conf.dist/log.conf
  2. 2 2
      desktop/conf/log.conf
  3. 1 1
      desktop/core/src/desktop/log/__init__.py

+ 2 - 2
desktop/conf.dist/log.conf

@@ -40,11 +40,11 @@ args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
 
 [formatter_default]
 format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S +0000
+datefmt=%d/%b/%Y %H:%M:%S
 
 [formatter_access]
 format=[%(asctime)s] %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S +0000
+datefmt=%d/%b/%Y %H:%M:%S
 
 [loggers]
 keys=root,access

+ 2 - 2
desktop/conf/log.conf

@@ -45,11 +45,11 @@ args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 1000000, 3)
 
 [formatter_default]
 format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S +0000
+datefmt=%d/%b/%Y %H:%M:%S
 
 [formatter_access]
 format=[%(asctime)s] %(levelname)-8s %(message)s
-datefmt=%d/%b/%Y %H:%M:%S +0000
+datefmt=%d/%b/%Y %H:%M:%S
 
 
 ########################################

+ 1 - 1
desktop/core/src/desktop/log/__init__.py

@@ -33,7 +33,7 @@ from desktop.lib.paths import get_desktop_root
 
 DEFAULT_LOG_DIR = 'logs'
 LOG_FORMAT = '[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s'
-DATE_FORMAT = '%d/%b/%Y %H:%M:%S %z'
+DATE_FORMAT = '%d/%b/%Y %H:%M:%S'
 
 CONF_RE = re.compile('%LOG_DIR%|%PROC_NAME%')