-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ tmp/appdata-factory.xml.gz | |
.idea | ||
public/assets | ||
tmp/sass-cache | ||
config/options.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
HoptoadNotifier.configure do |config| | ||
# Change this to some sensible data for your errbit instance | ||
config.api_key = CONFIG['errbit_api_key'] || 'YOUR_ERRBIT_API_KEY' | ||
config.host = CONFIG['errbit_host'] || 'YOUR_ERRBIT_HOST' | ||
if CONFIG['errbit_api_key'].blank? || CONFIG['errbit_host'].blank? | ||
config.development_environments = "production development test" | ||
else | ||
config.development_environments = "development test" | ||
end | ||
|
||
config.ignore_only = %w{ | ||
ActiveRecord::RecordNotFound | ||
ActionController::InvalidAuthenticityToken | ||
CGI::Session::CookieStore::TamperedWithCookie | ||
ActionController::UnknownAction | ||
AbstractController::ActionNotFound | ||
Timeout::Error | ||
Net::HTTPBadResponse | ||
} | ||
|
||
config.ignore_by_filter do |exception_data| | ||
ret=false | ||
if exception_data[:error_class] == "ActionController::RoutingError" | ||
message = exception_data[:error_message] | ||
ret=true if message =~ %r{Required Parameter} | ||
ret=true if message =~ %r{\[GET\]} | ||
ret=true if message =~ %r{Expected AJAX call} | ||
end | ||
ret | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters