Skip to content

Commit be9d5ff

Browse files
author
Aakash Sabharwal
committed
Customized error url
1 parent ca0e963 commit be9d5ff

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

graphite_beacon/alerts.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,7 @@ def __init__(self, reactor, **options):
7070
self.reactor = reactor
7171
self.options = options
7272
self.client = hc.AsyncHTTPClient()
73-
74-
LOGGER.debug("in BaseAlert Options init %s", str(options))
75-
LOGGER.debug("in BaseAlert Options reactor %s", str(reactor))
76-
LOGGER.debug("in BaseAlert Options %s", options.get('testvar'))
77-
self.testvar = options.get('testvar')
78-
LOGGER.debug("self.testvar %s", self.testvar)
79-
73+
8074
try:
8175
self.configure(**options)
8276
except Exception as e:

graphite_beacon/templates/graphite/message.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@
4949
<b>Tested value:</b> {{ alert.convert(alert.get_value_for_expr(expr, target)) }}</b> <br/>
5050
{% end %}
5151
{% end %}
52-
53-
View the graphtestvar 1: {{ alert.options.get('testvar') }}
54-
View the graphtestvar 2: {{ alert.testvar }}
55-
52+
<b> Errors : {{ alert.options.get('errorstr') }} </b>
5653
</td>
5754
</tr>
5855
<tr>

0 commit comments

Comments
 (0)