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