mirror of https://github.com/zulip/zulip.git
Log time spent in markdown to statsd
(imported from commit 736a4ddf0716cf365cfaafd8f22a88de00d126bd)
This commit is contained in:
parent
a906e1609d
commit
df6a93ddb6
|
@ -100,6 +100,9 @@ class LogRequests(object):
|
|||
bugdown_output = " (md: %s/%s)" % (format_timedelta(bugdown_time_delta),
|
||||
bugdown_count_delta)
|
||||
|
||||
statsd.timing("%s.markdown.time" % (statsd_path,), timedelta_ms(bugdown_time_delta))
|
||||
statsd.incr("%s.markdown.count" % (statsd_path,), bugdown_count_delta)
|
||||
|
||||
# Get the amount of time spent doing database queries
|
||||
db_time_output = ""
|
||||
if len(connection.queries) > 0:
|
||||
|
|
Loading…
Reference in New Issue