(self, metric)
Decorator for processing handlers with a lock, catching exceptions
Decorator for processing handlers with a lock, catching exceptions
Decorator for processing handlers with a lock catching exceptions
def _process(self, metric):
        """
        Decorator for processing handlers with a lock, catching exceptions
        """
        if not self.enabled:
            return
        try:
            try:
                self.lock.acquire()
                self.process(metric)
            except Exception:
                self.log.error(traceback.format_exc())
        finally:
            if self.lock.locked():
                self.lock.release()
def _process ( self , metric ) : if not self . enabled : return try : try : self . lock . acquire ( ) self . process ( metric ) except Exception : self . log . error ( traceback . format_exc ( ) ) finally : if self . lock . locked ( ) : self . lock . release ( )