spec/support/example_message_handler.rb in pheme-0.0.8 vs spec/support/example_message_handler.rb in pheme-0.0.9
- old
+ new
@@ -1,10 +1,10 @@
class ExampleMessageHandler < Pheme::MessageHandler
def handle
case message.status
when "complete"
- Pheme.log(:info, "Done")
+ Pheme.logger.info("Done")
when "rejected"
- Pheme.log(:error, "Oops")
+ Pheme.logger.error("Oops")
end
end
end