mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
logging: Show timestamp in UTC in non-django production scripts.
Done in pair programming with @aero31aero. Fixes #9678.
This commit is contained in:
committed by
Tim Abbott
parent
920ef2b7f7
commit
0e2322a322
@@ -4,6 +4,7 @@ import configparser
|
||||
import sys
|
||||
import subprocess
|
||||
import logging
|
||||
import time
|
||||
|
||||
config_file = configparser.RawConfigParser()
|
||||
config_file.read("/etc/zulip/zulip.conf")
|
||||
@@ -24,6 +25,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, make_deploy_path, \
|
||||
get_deployment_lock, release_deployment_lock, su_to_zulip
|
||||
|
||||
logging.Formatter.converter = time.gmtime
|
||||
logging.basicConfig(format="%(asctime)s upgrade-zulip-from-git: %(message)s",
|
||||
level=logging.INFO)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user