Skip to content

Commit

Permalink
Adding honeybadger notify to options for error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
aleon committed Feb 11, 2015
1 parent e3dd228 commit 3686e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -91,7 +91,7 @@ Where `<environment>` is your Rails environment and `<options>` 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.
Expand Down
4 changes: 3 additions & 1 deletion lib/push/daemon/logger.rb
Expand Up @@ -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

Expand All @@ -71,4 +73,4 @@ def do_error_notification?(msg, options)
end
end
end
end
end

0 comments on commit 3686e91

Please sign in to comment.