##// END OF EJS Templates
gunicorn: fixed config syntax
super-admin -
r4925:310a1c9d default
parent child Browse files
Show More
@@ -57,12 +57,9 b' def _get_process_rss(pid=None):'
57
57
58
58
59 def _get_config(ini_path):
59 def _get_config(ini_path):
60 import configparser
60
61
61 try:
62 try:
62 import configparser
63 except ImportError:
64 import ConfigParser as configparser
65 try:
66 config = configparser.RawConfigParser()
63 config = configparser.RawConfigParser()
67 config.read(ini_path)
64 config.read(ini_path)
68 return config
65 return config
@@ -336,7 +333,7 b' class RhodeCodeLogger(Logger):'
336 def now(self):
333 def now(self):
337 """ return date in RhodeCode Log format """
334 """ return date in RhodeCode Log format """
338 now = time.time()
335 now = time.time()
339 msecs = int((now - long(now)) * 1000)
336 msecs = int((now - int(now)) * 1000)
340 return time.strftime(self.datefmt, time.localtime(now)) + '.{0:03d}'.format(msecs)
337 return time.strftime(self.datefmt, time.localtime(now)) + '.{0:03d}'.format(msecs)
341
338
342 def atoms(self, resp, req, environ, request_time):
339 def atoms(self, resp, req, environ, request_time):
General Comments 0
You need to be logged in to leave comments. Login now