Permalink
Browse files

Merge pull request #155 from parkerd/statsd

Ignore statsd namespace if an empty string is provided
  • Loading branch information...
2 parents c9b3a47 + 32da285 commit 36a3b3d55bca6c9a8caf4705fcb64972d3c6af14 @jordansissel jordansissel committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/logstash/outputs/statsd.rb
@@ -66,7 +66,7 @@ def register
def receive(event)
return unless output?(event)
- @client.namespace = event.sprintf(@namespace)
+ @client.namespace = event.sprintf(@namespace) if not @namespace.empty?
logger.debug("Original sender: #{@sender}")
sender = event.sprintf(@sender)
logger.debug("Munged sender: #{sender}")

0 comments on commit 36a3b3d

Please sign in to comment.