lib/webhookd/app.rb in webhookd-0.0.7 vs lib/webhookd/app.rb in webhookd-0.0.8
- old
+ new
@@ -127,18 +127,20 @@
parsed_command = ERB.new(command).result(binding)
command_runner = Commandrunner.new(parsed_command)
command_runner.run
end
# we don't know the type of this known payload
+ when 'debug'
+ logger.info "payload type was debug, see debug loglevel"
else
error_msg = "webhook payload type #{parsed_data[:type]} unknown"
logger.fatal error_msg
halt 500, "#{error_msg}\n"
end
# this type of payload is not configured
else
error_msg = "webhook payload of type #{parsed_data[:type]} not configured"
- logger.info error_msg
+ logger.error error_msg
halt 500, "#{error_msg}\n"
end
logger.debug "using configuration file #{configuration_file}"
# output to the requester