(self)
Send statistics to log.
Send statistics to log.
Send statistics to log .
def send_stats(self):
        "Send statistics to log."

        res = []
        for k, v in self.stat_dict.items():
            res.append("%s: %s" % (k, v))

        if len(res) == 0:
            return

        logmsg = "{%s}" % ", ".join(res)
        self.log.info(logmsg)
        self.stat_dict = {}
def send_stats ( self ) : res = [ ] for k , v in self . stat_dict . items ( ) : res . append ( "%s: %s" % ( k , v ) ) if len ( res ) == 0 : return logmsg = "{%s}" % ", " . join ( res ) self . log . info ( logmsg ) self . stat_dict = { }