gunicorn: fixed config syntax

This commit is contained in:
RhodeCode Admin 2023-03-06 23:27:06 +01:00
parent 2bd5fdf4bd
commit edf8d9763b

View file

@ -57,11 +57,8 @@ def _get_process_rss(pid=None):
def _get_config(ini_path):
import configparser
try:
import configparser
except ImportError:
import ConfigParser as configparser
try:
config = configparser.RawConfigParser()
config.read(ini_path)
@ -336,7 +333,7 @@ class RhodeCodeLogger(Logger):
def now(self):
""" return date in RhodeCode Log format """
now = time.time()
msecs = int((now - long(now)) * 1000)
msecs = int((now - int(now)) * 1000)
return time.strftime(self.datefmt, time.localtime(now)) + '.{0:03d}'.format(msecs)
def atoms(self, resp, req, environ, request_time):