(self, config=None)
@type config: configobj.ConfigObj
def __init__(self, config=None):
        """
        @type config: configobj.ConfigObj
        """
        Handler.__init__(self, config)
        if not raven:
            return
        # init sentry/raven
        self.sentry_log_handler = raven.handlers.logging.SentryHandler(
            self.config['dsn'])
        self.raven_logger = logging.getLogger(self.__class__.__name__)
        self.raven_logger.addHandler(self.sentry_log_handler)
        self.configure_sentry_errors()
        self.rules = self.compile_rules()
        self.hostname = get_hostname(self.config)
        if not len(self.rules):
            self.log.warning("No rules, this graphite handler is unused")
def __init__ ( self , config = None ) : Handler . __init__ ( self , config ) if not raven : return # init sentry/raven self . sentry_log_handler = raven . handlers . logging . SentryHandler ( self . config [ 'dsn' ] ) self . raven_logger = logging . getLogger ( self . __class__ . __name__ ) self . raven_logger . addHandler ( self . sentry_log_handler ) self . configure_sentry_errors ( ) self . rules = self . compile_rules ( ) self . hostname = get_hostname ( self . config ) if not len ( self . rules ) : self . log . warning ( "No rules, this graphite handler is unused" )