Permalink
Browse files

update docs

  • Loading branch information...
Andy McKay
Andy McKay committed Jan 20, 2012
1 parent 4b7f151 commit a38c7b51ebeb0c8dfefb0bfba0864b5ce12e32fa
@@ -113,7 +113,7 @@ def _send_http(self):
if __name__=='__main__':
new = post()
#new.server(url="http://amckay-arecibo.khan.mozilla.org")
- new.server(url="http://localhost:8000")
+ new.server(url="http://arecibo1.dmz.sjc1.mozilla.com")
#new.transport = "smtp"
#new.smtp_server = "smtp.telus.net"
#new.server(email="your server")
@@ -103,13 +103,28 @@ You can pass through an extra configuration dictionary for filtering or excludin
The options are:
-* EXCLUDED_POST_VARS - a list of the fields you'd like not to post to Arecibo
+* EXCLUDED_POST_VARS - a list of the fields you'd like not to post to Arecibo.
-* EXCLUDED_FILES - a list of the files you'd like not to send information about to Arecibo
+* EXCLUDED_FILES - a list of the files you'd like not to send information about to Arecibo.
-* FILTERED_POST_VARS - instead of sending the value of the field, sends * instead
+* FILTERED_POST_VARS - instead of sending the value of the field, sends * instead.
-* FILTERED_FILES - instead of sending information about the file, sends * instead
+* FILTERED_FILES - instead of sending information about the file, sends * instead.
+
+* CALLBACKS - a list of Python methods to be called before processing the error so that you could filter out errors that you don't want to send, by whatever logic you'd like. Any method that returns False (or None) stop processing that error. For example let's exclude all 404's from the GoogleBot::
+
+ def stop_google(request, status, **kw):
+ if ('Googlebot' in request.META.get('HTTP_USER_AGENT') and status == 404):
+ return False
+ return True
+
+ ARECIBO_SETTINGS = {
+ 'CALLBACKS': [stop_google,]
+ }
+
+* GROUP_POSTS - boolean, True or False to activate grouping of posts. If you do this, then all errors get passed to celery and wait for GROUP_WAIT seconds before sending it. It will then count the number of times this error has occurred in those GROUP_WAIT seconds. It will then send only ONE error, with the count of the number of times it occurred. This is to prevent one problem on the site that causes lots of errors filling up your site with junk. For example if the database goes down, one error will suffice on that subject, not 6,000 per second. *Note*: this requires celery and memcache to be functioning.
+
+* GROUP_WAIT - period to wait for GROUP_POSTS.
Other times
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -16,7 +16,9 @@ Arecibo uses Django's signal handling mechanism to deal with customizing. Whenev
* *group_created*: sent when an error grouping is created
-* *group_assigned*: sent when an group is created and has an error assigned to it
+* *group_assigned*: sent when a group is created
+
+* *error_assigned*: sent when an error is assigned to group
* *notification_created*: sent when a notification is created

0 comments on commit a38c7b5

Please sign in to comment.