mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Merge pull request #155 from parkerd/statsd
Ignore statsd namespace if an empty string is provided
This commit is contained in:
commit
36a3b3d55b
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class LogStash::Outputs::Statsd < LogStash::Outputs::Base
|
|||
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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue