gunicorn: fixed config syntax
This commit is contained in:
parent
2bd5fdf4bd
commit
edf8d9763b
1 changed files with 2 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue