# File lib/puppet/util/log/destinations.rb, line 24 24: def handle(msg) 25: # XXX Syslog currently has a bug that makes it so you 26: # cannot log a message with a '%' in it. So, we get rid 27: # of them. 28: if msg.source == "Puppet" 29: @syslog.send(msg.level, msg.to_s.gsub("%", '%%')) 30: else 31: @syslog.send(msg.level, "(%s) %s" % [msg.source.to_s.gsub("%", ""), 32: msg.to_s.gsub("%", '%%') 33: ] 34: ) 35: end 36: end