2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>{{ oops.oopsid }}</title>
7
<style type="text/css" media="screen">
8
@import url("/oops/static/oops.css");
14
<div id="leftcontent">
17
<li>OOPS: <span>{{ oops.oopsid }}</span></li>
18
<li>Filename: <span>{{ oops.pathname }}</span></li>
19
<li>Informational: <span>{{ oops.informational }}</span></li>
21
<li>Bug: <a href="https://launchpad.net/bugs/{{oops.bug}}">{{ oops.bug }}</a></li>
23
<form action="meta" method="post">
24
<input type="text" size="8" name="bug_number" />
25
<input type="hidden" name="oopsid" value="{{ oops.oopsid }}" />
26
<input type="hidden" name="pageid" value="{{ oops.pageid }}" />
27
<input type="hidden" name="date" value="{{ oops.date }}" />
28
<input type="submit" value="Bug #" />
33
<li>HTTP method: <span>{{ oops.http_method }}</span></li>
34
<li>URL: <a href="{{ oops.url }}">{{ oops.url }}</a></li>
35
<li>Referrer: <a href="{{ oops.referrer }}">{{ oops.referrer }}</a></li>
38
<li>Date: <span>{{ oops.date }}</span></li>
39
<li>Page-id: <span>{{ oops.pageid }}</span></li>
40
{% ifequal oops.oopsinfestation.last_seen_oops.oopsid oops.oopsid %}
41
<li>(This is the most recent instance.) </li>
44
<span>{{ oops.oopsinfestation.last_seen_oops.date }}</span>
45
<a href="/oops/?oopsid={{ oops.oopsinfestation.last_seen_oops.oopsid }}">
46
{{ oops.oopsinfestation.last_seen_oops.oopsid }}
50
<li>Past week count: <span>{{ oops.oopsinfestation.past_week_count }}</span></li>
52
<!--! XXX: link the user to Launchpad profile, if anonymous no link-->
54
<li>User: <span>{{ oops.user }}</span></li>
55
<li>DB id: <span>{{ oops.user_db_id }}</span></li>
56
<!--! XXX: using LP api retrieve this user karma -->
59
<li>Branch: <span>{{ oops.branch_nick }}</span></li>
60
<li>Revno: <span>{{ oops.revno }}</span></li>
63
<li>SQL time: <span>{{ oops.accumulated_time }}</span> ms</li>
64
<li>Non-sql time: <span>{{ oops.total_non_sql_time }}</span> ms</li>
65
<li>Total time: <span>{{ oops.total_time }}</span> ms</li>
66
<li>Statement Count: <span>{{ oops.statements_count }}</span></li>
69
<li><a href="#requestvars">Request variables</a></li>
70
<li><a href="#longstatements">Long SQL Statements</a></li>
71
<li><a href="#repeatedstatements">Repeated SQL Statements</a></li>
72
<li><a href="#statementlog">SQL statement log</a></li>
79
<h3><a name="top"></a>Traceback</h3>
80
<!--! XXX: find a way to fold the traceback if more than X lines -->
81
<pre class="listing traceback">
82
<span>{{ oops.exception_type }}</span>: <span>{{oops.exception_value}}</span>
84
<span>{{ oops.traceback }}</span>
88
<div id="request_variables">
90
<a name="requestvars"></a>Request Variables
91
<a class="top" href="#top">top</a>
94
{% for key, value in oops.req_vars %}
95
<li>{{key}}: {{value}}</li>
102
<a name="longstatements"></a>Long SQL Statements (Shows up to five statements)
103
<a class="top" href="#top">top</a>
105
<table id="longstatements">
116
{% for num, total_time, reps, db_id, statement in oops.longest_statements|slice:":5" %}
119
<td>{{total_time}}</td>
122
<td><pre>{{statement|format_sql}}</pre></td>
129
<a name="repeatedstatements"></a>Repeated SQL Statements
130
<a class="top" href="#top">top</a>
132
<table id="repeatedstatements">
138
<th>Average time</th>
145
{% for num, reps, total_time, average, saving, db_id, projected_total_time, statement in oops.repeated_statements %}
149
<td>{{total_time}}</td>
153
<td><pre>{{statement|format_sql}}</pre></td>
160
<a name="statementlog"></a>SQL Statement Log
161
<a class="top" href="#top">top</a>
163
<table id="statementlog">
174
{% for num, start, stop, db_id, length, statement in oops.formatted_statements %}
178
<td>{{length}}ms</td>
180
<td><pre>{{statement|format_sql}}</pre></td>