summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Hurst <david@eventboard.io>2016-02-29 11:04:24 -0700
committerDavid Hurst <david@eventboard.io>2016-02-29 11:04:24 -0700
commitf2cb4c74caeb1321d69188d5e9e19827d6805f09 (patch)
treeaaf21763eb1069c954b7b8c529f33122bd208d65
parent0e4c490463461a723ae17c0f6cf71bdd47f6d05b (diff)
downloadlogster-f2cb4c74caeb1321d69188d5e9e19827d6805f09.zip
logster-f2cb4c74caeb1321d69188d5e9e19827d6805f09.tar.gz
logster-f2cb4c74caeb1321d69188d5e9e19827d6805f09.tar.bz2
return after graphite output error
-rw-r--r--logster/outputs/graphite.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/logster/outputs/graphite.py b/logster/outputs/graphite.py
index f252a90..f891b32 100644
--- a/logster/outputs/graphite.py
+++ b/logster/outputs/graphite.py
@@ -48,6 +48,7 @@ class GraphiteOutput(LogsterOutput):
# Spaces in graphite metric names will cause failure
if ' ' in metric_name:
self.logger.error('Invalid metric name, spaces not allowed')
+ return
metric_string = "%s %s %s" % (metric_name, metric.value, metric.timestamp)
self.logger.debug("Submitting Graphite metric: %s" % metric_string)