diff --git a/lib/earthquake/core.rb b/lib/earthquake/core.rb index 5aafc45..b6abbf6 100644 --- a/lib/earthquake/core.rb +++ b/lib/earthquake/core.rb @@ -250,6 +250,8 @@ def error(e) end def notify(message, options = {}) + return if config[:no_notify] + args = {:title => 'earthquake'}.update(options) title = args.delete(:title) message = message.is_a?(String) ? message : message.inspect