summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/log.rb')
-rw-r--r--lib/puppet/util/log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index d6d3ba018..25c4677fb 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -537,7 +537,7 @@ class Puppet::Util::Log
source.tags.each { |t| tag(t) }
[:file, :line, :version].each do |param|
- next unless source.respond_to?(param) and value = source.send(param)
+ next unless value = source.send(param)
send(param.to_s + "=", value)
end
end