Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(30)  |  Call(30)  |  Derive(0)  |  Import(0)
Log a message from the console

src/b/3/b3-1.9.2/b3/parsers/iourt42.py   b3(Download)
            self.warning("Could not query server for cvar auth.", exc_info=e)
            frozensand_auth_available = False
        self.info("Frozen Sand auth system enabled : %s" % ('yes' if frozensand_auth_available else 'no'))
 
        try:
            frozensand_auth_owners = self.getCvar('auth_owners').getString()
        except Exception, e:
            self.warning("Could not query server for cvar auth_owners.", exc_info=e)
            frozensand_auth_owners = ""
        self.info("Frozen Sand auth_owners set : %s" % (('yes - %s' % frozensand_auth_available) if frozensand_auth_owners else 'no'))
            self.load_conf_tempban_with_frozensand()
            if self._permban_with_frozensand or self._tempban_with_frozensand:
                self.info("NOTE: when banning with the Frozen Sand auth system, B3 cannot remove the bans on the urbanterror.info website. To unban a player you will have to first unban him on B3 and then also unban him on the official Frozen Sand website : http://www.urbanterror.info/groups/list/all/?search=%s" % frozensand_auth_owners)
 
        else:
            self.info("ignoring settings about banning with Frozen Sand auth system as the auth system is not enabled or auth_owners not set")
        except Exception, err:
            self.warning(err)
        self.info("Send permbans to Frozen Sand : %s" % ('yes' if self._permban_with_frozensand else 'no'))
 
 

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt42.py   big-brother-bot(Download)
            self.warning("Could not query server for cvar auth.", exc_info=e)
            frozensand_auth_available = False
        self.info("Frozen Sand auth system enabled : %s" % ('yes' if frozensand_auth_available else 'no'))
 
        try:
            frozensand_auth_owners = self.getCvar('auth_owners').getString()
        except Exception, e:
            self.warning("Could not query server for cvar auth_owners.", exc_info=e)
            frozensand_auth_owners = ""
        self.info("Frozen Sand auth_owners set : %s" % (('yes - %s' % frozensand_auth_available) if frozensand_auth_owners else 'no'))
            self.load_conf_tempban_with_frozensand()
            if self._permban_with_frozensand or self._tempban_with_frozensand:
                self.info("NOTE: when banning with the Frozen Sand auth system, B3 cannot remove the bans on the urbanterror.info website. To unban a player you will have to first unban him on B3 and then also unban him on the official Frozen Sand website : http://www.urbanterror.info/groups/list/all/?search=%s" % frozensand_auth_owners)
 
        else:
            self.info("ignoring settings about banning with Frozen Sand auth system as the auth system is not enabled or auth_owners not set")
        except Exception, err:
            self.warning(err)
        self.info("Send permbans to Frozen Sand : %s" % ('yes' if self._permban_with_frozensand else 'no'))