Permalink
Browse files

README

  • Loading branch information...
1 parent c284dfc commit adaf38bd5d1e8bd2849291787e96eb3460563d27 @winton committed Dec 7, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.markdown
View
@@ -60,7 +60,7 @@ Lilypad do
api_key nil
environments %w(production staging)
deploy_url 'http://hoptoadapp.com:80/deploys.txt'
- notify_url 'http://hoptoadapp.com:80/notify_url/v2/notices'
+ notify_url 'http://hoptoadapp.com:80/notifier_api/v2/notices'
filters [] # Array of environment variables to hide from Hoptoad
log nil # Path of Hoptoad log
rails # Requires the Rails adapter
@@ -76,9 +76,9 @@ Conditionally redirect errors to different Hoptoad buckets.
<pre>
Lilypad do
api_key do |env, exception|
- if exception.message =~ /No route matches/
+ if exception && exception.message =~ /No route matches/
'hoptoad_api_key_goes_here'
- elsif env['HTTP_USER_AGENT'] =~ /crawler/
+ elsif env && env['HTTP_USER_AGENT'] =~ /Googlebot/
'hoptoad_api_key_goes_here'
else
'hoptoad_api_key_goes_here'

0 comments on commit adaf38b

Please sign in to comment.