Permalink
Browse files

stop logging timing (bug update)

  • Loading branch information...
andymckay committed Apr 26, 2012
1 parent 8438b10 commit e1aa536f1f905c1204f8a87969ef00402ba50a65
Showing with 0 additions and 7 deletions.
  1. +0 −7 services/update.py
View
@@ -346,10 +346,7 @@ def log_exception(data):
def application(environ, start_response):
- start = time()
status = '200 OK'
- timing = (environ['REQUEST_METHOD'], '%s?%s' %
- (environ['SCRIPT_NAME'], environ['QUERY_STRING']))
with statsd.timer('services.update'):
data = dict(parse_qsl(environ['QUERY_STRING']))
compat_mode = data.pop('compatMode', 'strict')
@@ -358,11 +355,7 @@ def application(environ, start_response):
output = update.get_rdf()
start_response(status, update.get_headers(len(output)))
except:
- timing_log.info('%s "%s" (500) %.2f [ANON]' %
- (timing[0], timing[1], time() - start))
#mail_exception(data)
log_exception(data)
raise
- timing_log.info('%s "%s" (200) %.2f [ANON]' %
- (timing[0], timing[1], time() - start))
return [output]

0 comments on commit e1aa536

Please sign in to comment.