##// END OF EJS Templates
vendor: python3 fixes
super-admin -
r5041:dcbf3e8a default
parent child Browse files
Show More
@@ -3,7 +3,6 b' This library is provided to allow standa'
3 3 to output log data as JSON formatted strings
4 4 '''
5 5 import logging
6 import json
7 6 import re
8 7 from datetime import date, datetime, time, tzinfo, timedelta
9 8 import traceback
@@ -13,6 +12,8 b' from inspect import istraceback'
13 12
14 13 from collections import OrderedDict
15 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 18 ZERO = timedelta(0)
18 19 HOUR = timedelta(hours=1)
@@ -16,7 +16,7 b" log = logging.getLogger('rhodecode.stats"
16 16
17 17 def statsd_config(config, prefix='statsd.'):
18 18 _config = {}
19 for key in config.keys():
19 for key in list(config.keys()):
20 20 if key.startswith(prefix):
21 21 _config[key[len(prefix):]] = config[key]
22 22 return _config
General Comments 0
You need to be logged in to leave comments. Login now