summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/log.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-10-03 17:39:18 -0500
committerJames Turnbull <james@lovedthanlost.net>2008-10-04 08:48:44 +1000
commita7744438f83c97886e81990fb34ddcbab8bc0d9e (patch)
treeebbb6ab387d5a00d6eecb14a0d6624a272fce5a8 /lib/puppet/util/log.rb
parentdb7f108f546db2114f87316c68d33706c9e4142e (diff)
downloadpuppet-a7744438f83c97886e81990fb34ddcbab8bc0d9e.tar.gz
puppet-a7744438f83c97886e81990fb34ddcbab8bc0d9e.tar.xz
puppet-a7744438f83c97886e81990fb34ddcbab8bc0d9e.zip
Fixing #1089 - Log messages are now tagged with the log level,
making it easier to match messages in the 'tagmail' report. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/util/log.rb')
-rw-r--r--lib/puppet/util/log.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index f5119bbff..35249495d 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -509,6 +509,9 @@ class Puppet::Util::Log
@source = "Puppet"
end
+ # Tag myself with my log level
+ tag(level)
+
Log.newmessage(self)
end