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/i/big-brother-bot-HEAD/b3/plugins/cod7http.py   big-brother-bot(Download)
            logext = 'games_mp_' + logext + '_' + str(self._port) + '.log'
            self.locallog = os.path.normpath(os.path.expanduser(logext))
            self.debug('Local Game Log is %s' % self.locallog)
 
        if self.console.config.has_option('server', 'log_append'):
                self.timeout = int(f.readlines()[0])
                f.close()
                self.debug('Using timeout value of %s seconds' % self.timeout)
 
            except (urllib2.HTTPError, urllib2.URLError, socket.timeout), error: 
        if self.console._paused is False:
            self.console.pause()
            self.debug('Pausing')
        # Remove last line if not complete
        i = remotelog.rfind ('\r\n')
        if self.console._paused:
            self.console.unpause()
            self.debug('Unpausing')
 
    def processData(self):
                            output.close()
                            self.lastlines = remotelog[-1000:]                        
                            self.debug('Downloaded %s KB and added %s char(s) to log' % (remotelogsize, len(newlog)))
 
                    else:

src/b/3/b3-1.9.2/b3/plugins/punkbuster.py   b3(Download)
                self.error('ERROR: %s' % err)
            ftp.quit()
            self.debug('Uploaded pbbans.dat to FTP server successfully.')
        else:
            f.close()
            self.debug('Updated pbbans.dat successfully.')

src/b/i/big-brother-bot-HEAD/b3/plugins/punkbuster.py   big-brother-bot(Download)
                self.error('ERROR: %s' % err)
            ftp.quit()
            self.debug('Uploaded pbbans.dat to FTP server successfully.')
        else:
            f.close()
            self.debug('Updated pbbans.dat successfully.')

Previous  1 | 2 | 3 | 4