diff --git a/README.md b/README.md index 201b6c4..b46ed1a 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Where `` is your Rails environment and `` can be: -f, --foreground Run in the foreground. Log is not written. -p, --pid-file PATH Path to write PID file. Relative to Rails root unless absolute. -P, --push-poll N Frequency in seconds to check for new notifications. Default: 2. - -n, --error-notification Enables error notifications via Airbrake or Bugsnag. + -n, --error-notification Enables error notifications via Airbrake, Bugsnag or Honeybadger. -F, --feedback-poll N Frequency in seconds to check for feedback for the feedback processor. Default: 60. Use 0 to disable. -b, --feedback-processor PATH Path to the feedback processor. Default: lib/push/feedback_processor. -v, --version Print this version of push. diff --git a/lib/push/daemon/logger.rb b/lib/push/daemon/logger.rb index e5bc41a..f3617dc 100644 --- a/lib/push/daemon/logger.rb +++ b/lib/push/daemon/logger.rb @@ -63,6 +63,8 @@ def error_notification(e, options) HoptoadNotifier.notify_or_ignore(e) elsif defined?(Bugsnag) Bugsnag.notify(e) + elsif defined?(Honeybadger) + Honeybadger.notify(e) end end @@ -71,4 +73,4 @@ def do_error_notification?(msg, options) end end end -end \ No newline at end of file +end