# File lib/puppet/util/log.rb, line 195 195: def handle(msg) 196: # XXX Syslog currently has a bug that makes it so you 197: # cannot log a message with a '%' in it. So, we get rid 198: # of them. 199: if msg.source == "Puppet" 200: @syslog.send(msg.level, msg.to_s.gsub("%", '%%')) 201: else 202: @syslog.send(msg.level, "(%s) %s" % 203: [msg.source.to_s.gsub("%", ""), 204: msg.to_s.gsub("%", '%%') 205: ] 206: ) 207: end 208: end