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

All Samples(565)  |  Call(565)  |  Derive(0)  |  Import(0)
Log a debug message to the main log.
        

src/b/3/b3-1.9.2/b3/plugins/admin.py   b3(Download)
            try:
                superadmins = self.console.clients.lookupSuperAdmins()
                self.debug('%s superadmins found in database' % len(superadmins))
            except Exception, msg:
                # no proper groups available, cannot continue
            self._commands[command].prefixLoud = self.cmdPrefixLoud
 
            self.debug('Command "%s (%s)" registered with %s for level %s' % (command, alias, self._commands[command].func.__name__, self._commands[command].level))
            return True
        except Exception, msg:
    def OnSay(self, event, private=False):
        self.debug('OnSay handle %s:"%s"', event.type, event.data)
 
        if len(event.data) >= 3 and event.data[:1] == '#':
            if self.console.debug:
                if event.data[1:] == 'clients':
                    self.debug('Clients:')
                    for k, c in self.console.clients.items():
                        self.debug('client %s (#%i id: %s cid: %s level: %s group: %s) obj: %s', c.name, id(c), c.id, c.cid, c.maxLevel, c.groupBits, c)

src/b/i/big-brother-bot-HEAD/b3/plugins/admin.py   big-brother-bot(Download)
            try:
                superadmins = self.console.clients.lookupSuperAdmins()
                self.debug('%s superadmins found in database' % len(superadmins))
            except Exception, msg:
                # no proper groups available, cannot continue
            self._commands[command].prefixLoud = self.cmdPrefixLoud
 
            self.debug('Command "%s (%s)" registered with %s for level %s' % (command, alias, self._commands[command].func.__name__, self._commands[command].level))
            return True
        except Exception, msg:
    def OnSay(self, event, private=False):
        self.debug('OnSay handle %s:"%s"', event.type, event.data)
 
        if len(event.data) >= 3 and event.data[:1] == '#':
            if self.console.debug:
                if event.data[1:] == 'clients':
                    self.debug('Clients:')
                    for k, c in self.console.clients.items():
                        self.debug('client %s (#%i id: %s cid: %s level: %s group: %s) obj: %s', c.name, id(c), c.id, c.cid, c.maxLevel, c.groupBits, c)

src/b/3/b3-1.9.2/b3/extplugins/xlrstats.py   b3(Download)
        if sclient is not None:
            self._world_clientid = sclient.id
            self.debug('Got client id for B3: %s; %s' % (self._world_clientid, sclient.name))
            #make sure its hidden in the webfront
            player = self.get_PlayerStats(sclient)
            thread1.start()
        else:
            self.debug('No Webfront Url available, using defaults')
 
        #set proper kill_bonus and crontab
    def onLoadConfig(self):
        try:
            self.silent = self.config.getbool('settings', 'silent')
        except:
            self.debug('Using default value (%s) for settings::silent', self.silent)
 
        try:
            self.hide_bots = self.config.getbool('settings', 'hide_bots')
        except:
            self.debug('Using default value (%s) for settings::hide_bots', self.hide_bots)
            self.exclude_bots = self.config.getbool('settings', 'exclude_bots')
        except:
            self.debug('Using default value (%s) for settings::exclude_bots', self.exclude_bots)
 
        try:

src/b/i/big-brother-bot-HEAD/b3/extplugins/xlrstats.py   big-brother-bot(Download)
        if sclient is not None:
            self._world_clientid = sclient.id
            self.debug('Got client id for B3: %s; %s' % (self._world_clientid, sclient.name))
            #make sure its hidden in the webfront
            player = self.get_PlayerStats(sclient)
            thread1.start()
        else:
            self.debug('No Webfront Url available, using defaults')
 
        #set proper kill_bonus and crontab
    def onLoadConfig(self):
        try:
            self.silent = self.config.getbool('settings', 'silent')
        except:
            self.debug('Using default value (%s) for settings::silent', self.silent)
 
        try:
            self.hide_bots = self.config.getbool('settings', 'hide_bots')
        except:
            self.debug('Using default value (%s) for settings::hide_bots', self.hide_bots)
            self.exclude_bots = self.config.getbool('settings', 'exclude_bots')
        except:
            self.debug('Using default value (%s) for settings::exclude_bots', self.exclude_bots)
 
        try:

src/b/3/b3-plugin-poweradminurt-HEAD/extplugins/poweradminurt/iourt41.py   b3-plugin-poweradminurt(Download)
        self.installCrontabs()
 
        self.debug('Started')
 
 
        except:
            self._ninterval = 0
            self.debug('Using default value (%s) for Names Interval', self._ninterval)
 
        # set a max interval for namechecker
        except:
            self._checkdupes = True
            self.debug('Using default value (%s) for checkdupes', self._checkdupes)
        try:
            self._checkunknown = self.config.getboolean('namechecker', 'checkunknown')
        except:
            self._checkunknown = True
            self.debug('Using default value (%s) for checkunknown', self._checkunknown)
        except:
            self._checkbadnames = True
            self.debug('Using default value (%s) for checkbadnames', self._checkbadnames)
        try:
            self._checkchanges = self.config.getboolean('namechecker', 'checkchanges')

src/b/3/b3-1.9.2/b3/plugins/login.py   b3(Download)
        except:
            self.threshold = 1000
            self.debug('Using default value (%i) for settings::thresholdlevel', self.threshold)
        try:
            self.passwdlevel = self.config.getint('settings', 'passwdlevel') 
        except:
            self.passwdlevel = 100
            self.debug('Using default value (%i) for settings::passwdlevel', self.passwdlevel)
        else:
            self._pmcomm = '/tell'
        self.debug('Using "%s" as the private messaging command' %self._pmcomm)
 
 
    def onEvent(self, event):
        if event.type == b3.events.EVT_CLIENT_AUTH:
            self.onAuth(event.client)
        else:
            self.debug('login.dumpEvent -- Type %s, Client %s, Target %s, Data %s', event.type, event.client, event.target, event.data)

src/b/i/big-brother-bot-HEAD/b3/plugins/login.py   big-brother-bot(Download)
        except:
            self.threshold = 1000
            self.debug('Using default value (%i) for settings::thresholdlevel', self.threshold)
        try:
            self.passwdlevel = self.config.getint('settings', 'passwdlevel') 
        except:
            self.passwdlevel = 100
            self.debug('Using default value (%i) for settings::passwdlevel', self.passwdlevel)
        else:
            self._pmcomm = '/tell'
        self.debug('Using "%s" as the private messaging command' %self._pmcomm)
 
 
    def onEvent(self, event):
        if event.type == b3.events.EVT_CLIENT_AUTH:
            self.onAuth(event.client)
        else:
            self.debug('login.dumpEvent -- Type %s, Client %s, Target %s, Data %s', event.type, event.client, event.target, event.data)

src/b/3/b3-1.9.2/b3/plugins/stats.py   b3(Download)
        except:
            self.mapstatslevel = 0
            self.debug('Using default value (%i) for commands::mapstats', self.mapstatslevel)
 
        try:
            self.testscorelevel = self.config.getint('commands', 'testscore')
        except:
            self.testscorelevel = 0
            self.debug('Using default value (%i) for commands::testscore', self.testscorelevel)
        except:
            self.topstatslevel = 2
            self.debug('Using default value (%i) for commands::topstats', self.topstatslevel)
 
        try:
            self.topxplevel = self.config.getint('commands', 'topxp')
        except:
            self.topxplevel = 2
            self.debug('Using default value (%i) for commands::topxp', self.topxplevel)
        except:
            self.startPoints = 100
            self.debug('Using default value (%i) for settings::startPoints', self.startPoints)
 
        try:

src/b/i/big-brother-bot-HEAD/b3/plugins/stats.py   big-brother-bot(Download)
        except:
            self.mapstatslevel = 0
            self.debug('Using default value (%i) for commands::mapstats', self.mapstatslevel)
 
        try:
            self.testscorelevel = self.config.getint('commands', 'testscore')
        except:
            self.testscorelevel = 0
            self.debug('Using default value (%i) for commands::testscore', self.testscorelevel)
        except:
            self.topstatslevel = 2
            self.debug('Using default value (%i) for commands::topstats', self.topstatslevel)
 
        try:
            self.topxplevel = self.config.getint('commands', 'topxp')
        except:
            self.topxplevel = 2
            self.debug('Using default value (%i) for commands::topxp', self.topxplevel)
        except:
            self.startPoints = 100
            self.debug('Using default value (%i) for settings::startPoints', self.startPoints)
 
        try:

src/b/3/b3-1.9.2/b3/plugins/ftpytail.py   b3(Download)
            # get B3 actual locally opened game log
            self.lgame_log = os.path.normpath(os.path.expanduser(self.console.input.name))
            self.debug('Local Game Log is %s' % self.lgame_log)
 
        if self.console.config.get('server','game_log')[0:6] == 'ftp://' :
                remoteSize = ftp.size(os.path.basename(self.url_path))
                if remoteSize < self._remoteFileOffset:
                    self.debug("remote file rotation detected")
                    self._remoteFileOffset = 0
                if remoteSize > self._remoteFileOffset:
                    if  (remoteSize - self._remoteFileOffset) > self._maxGap:
                        self.debug('gap between local and remote file too large (%s bytes)', (remoteSize - self._remoteFileOffset))
                        self.debug('downloading only the last %s bytes' % self._maxGap)
                    if self.console._paused:
                        self.console.unpause()
                        self.debug('Unpausing')
 
            except ftplib.all_errors, e:

  1 | 2 | 3 | 4  Next