lib/bolt/catalog/logging.rb
# Emits message as a single line of JSON mapping level to message string.
Emits message as a single line of JSON mapping level to message string.
Emits message as a single line of JSON mapping level to message string .
def handle(msg)
    str = msg.respond_to?(:multiline) ? msg.multiline : msg.to_s
    str = msg.source == "Puppet" ? str : "#{msg.source}: #{str}"
    warn({ level: msg.level, message: str }.to_json)
  end
def handle ( msg ) str = msg . respond_to? ( :multiline ) ? msg . multiline : msg . to_s str = msg . source == "Puppet" ? str : "#{msg.source}: #{str}" warn ( { level : msg . level , message : str } . to_json ) end
Emits message as a single line of JSON mapping level to message string.
Emits message as a single line of JSON mapping level to message string .
msg
<not_specific>