import logging

class SentryHandler(logging.Handler):
    def emit(self, record):
        from sentry.client.models import get_client

        get_client().create_from_record(record)
@@ -7,16 +7,27 @@
  logging
+%0Aimport sys
 %0A%0Aclass 
@@ -139,16 +139,196 @@
 client%0A%0A
+        # Avoid typical config issues by overriding loggers behavior%0A        if record.name == 'sentry.errors':%0A            print %3E%3E sys.stderr, record.message%0A            return%0A%0A
         

Add a safety net for recursive logging