Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
stop logging timing (bug update)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy McKay committed Apr 26, 2012
1 parent 8438b10 commit e1aa536
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions services/update.py
Expand Up @@ -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')
Expand All @@ -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.