Show More
@@ -3,7 +3,6 b' This library is provided to allow standa' | |||||
3 | to output log data as JSON formatted strings |
|
3 | to output log data as JSON formatted strings | |
4 | ''' |
|
4 | ''' | |
5 | import logging |
|
5 | import logging | |
6 | import json |
|
|||
7 | import re |
|
6 | import re | |
8 | from datetime import date, datetime, time, tzinfo, timedelta |
|
7 | from datetime import date, datetime, time, tzinfo, timedelta | |
9 | import traceback |
|
8 | import traceback | |
@@ -13,6 +12,8 b' from inspect import istraceback' | |||||
13 |
|
12 | |||
14 | from collections import OrderedDict |
|
13 | from collections import OrderedDict | |
15 | from rhodecode.lib.logging_formatter import _inject_req_id, ExceptionAwareFormatter |
|
14 | from rhodecode.lib.logging_formatter import _inject_req_id, ExceptionAwareFormatter | |
|
15 | from rhodecode.lib.ext_json import sjson as json | |||
|
16 | ||||
16 |
|
17 | |||
17 | ZERO = timedelta(0) |
|
18 | ZERO = timedelta(0) | |
18 | HOUR = timedelta(hours=1) |
|
19 | HOUR = timedelta(hours=1) |
@@ -16,7 +16,7 b" log = logging.getLogger('rhodecode.stats" | |||||
16 |
|
16 | |||
17 | def statsd_config(config, prefix='statsd.'): |
|
17 | def statsd_config(config, prefix='statsd.'): | |
18 | _config = {} |
|
18 | _config = {} | |
19 | for key in config.keys(): |
|
19 | for key in list(config.keys()): | |
20 | if key.startswith(prefix): |
|
20 | if key.startswith(prefix): | |
21 | _config[key[len(prefix):]] = config[key] |
|
21 | _config[key[len(prefix):]] = config[key] | |
22 | return _config |
|
22 | return _config |
General Comments 0
You need to be logged in to leave comments.
Login now