Did I find the right examples for you? yes no

All Samples(588)  |  Call(517)  |  Derive(0)  |  Import(71)
Shortcut for logging.getLogger('wsgidav').info(msg)

This message will only display, if verbose >= 2. 

        def log(msg, var=None):
    """Shortcut for logging.getLogger('wsgidav').info(msg)

    This message will only display, if verbose >= 2. 
    """
#    _logger.info(msg)
#    if var and logging.INFO >= _logger.getEffectiveLevel():
#        pprint(var, sys.stderr, indent=4)
    note(msg, var=var)
        


src/p/r/prat-gevent-1.0dev/greentest/test__examples.py   prat-gevent(Download)
            took = time.time() - start
            if took < min_time:
                util.log('! Failed example %s: exited too quickly, after %.1fs (expected %.1fs)', filename, took, min_time)
                failed.append(filename)
 
    if failed:
        util.log('! Failed examples:\n! - %s', '\n! - '.join(failed))

src/g/e/gevent-1.0.1/greentest/test__examples.py   gevent(Download)
            took = time.time() - start
            if took < min_time:
                util.log('! Failed example %s: exited too quickly, after %.1fs (expected %.1fs)', filename, took, min_time)
                failed.append(filename)
 
    if failed:
        util.log('! Failed examples:\n! - %s', '\n! - '.join(failed))

src/g/e/gevent-HEAD/greentest/test__examples.py   gevent(Download)
            took = time.time() - start
            if took < min_time:
                util.log('! Failed example %s: exited too quickly, after %.1fs (expected %.1fs)', filename, took, min_time)
                failed.append(filename)
 
    if failed:
        util.log('! Failed examples:\n! - %s', '\n! - '.join(failed))

src/g/i/gitifyhg-0.8.4/gitifyhg/gitifyhg.py   gitifyhg(Download)
from mercurial.bookmarks import listbookmarks, readcurrent
 
from .util import (log, die, output, branch_head, GitMarks,
    HGMarks, hg_to_git_spaces, name_reftype_to_ref, BRANCH, BOOKMARK, TAG,
    version, deactivate_stdout)
        else:
            self.line = sys.stdin.readline().strip()
        log("INPUT: %s" % self.line)
        return self.line
 
        except IOError as e:
            if e.errno == 2 and e.filename == self.marks_hg_path:
                log("The marks file has been removed. This usually suggests "
                    "that a git clone operation failed. "
                    "To debug, set environment variable DEBUG_GITIFYHG "
def log_versions(level="DEBUG"):
    log("gitifyhg version %s" % version(), level=level)
    log("Mercurial version %s" % hg_version(), level=level)
    log("Python version %s" % (sys.version.replace("\n", "")), level=level)
 

src/s/l/SlickLogHandler-0.2.12/slicklog/remotelogger.py   SlickLogHandler(Download)
from time import time
 
from .util import log
from .util import u
from .util import new_queue
  def _print_endpoint(self):
    log(' -- Endpoint --')
    log(' host => {0}', self.host)
    log(' port => {0}', self.port)
    log(' path => {0}', self.path)

src/a/d/adagio-HEAD/androguard/decompiler/dad/decompile.py   adagio(Download)
        code = self.method.get_code()
        if code is None:
            util.log('No code : %s %s' % (self.name,
                                            self.method.get_class_name()),
                                            'debug')
    def process(self):
        util.log('METHOD : %s' % self.name, 'debug')
        if 0:
            from androguard.core import bytecode
            bytecode.method2png('/tmp/graphs/%s#%s.png' % \
        self.superclass = dvclass.get_superclassname()
 
        util.log('Class : %s' % self.name, 'log')
        util.log('Methods added :', 'log')
        for index, meth in self.methods.iteritems():
            util.log('%s (%s, %s)' % (index, meth.method.get_class_name(),

src/a/d/adagio-HEAD/androguard/decompiler/dad/opcode_ins.py   adagio(Download)
def move(ins, vmap):
    util.log('Move %s' % ins.get_output(), 'debug')
    a, b = get_variables(vmap, ins.A, ins.B)
    return MoveExpression(a, b)
 
 
# move/from16 vAA, vBBBB ( 8b, 16b )
def movefrom16(ins, vmap):
    util.log('MoveFrom16 %s' % ins.get_output(), 'debug')
def move16(ins, vmap):
    util.log('Move16 %s' % ins.get_output(), 'debug')
    a, b = get_variables(vmap, ins.AAAA, ins.BBBB)
    return MoveExpression(a, b)
 
 
# move-wide vA, vB ( 4b, 4b )
def movewide(ins, vmap):
    util.log('MoveWide %s' % ins.get_output(), 'debug')
def movewidefrom16(ins, vmap):
    util.log('MoveWideFrom16 : %s' % ins.get_output(), 'debug')
    a, b = get_variables(vmap, ins.AA, ins.BBBB)
    return MoveExpression(a, b)
 

src/g/i/gitwalker-0.1.7/gitwalker/main.py   gitwalker(Download)
import json, shutil, tempfile, pprint, optparse, inspect
import tools
from datetime import datetime
from util import log, exit_msg, CmdError
from git import git_clone, git_log, git_checkout
    try:
        git_new = tempfile.mkdtemp()
        log("Temp dir created: %s", git_new)
        log("Cloning repo: %s -> %s", git_repo, git_new)
        git_clone(git_repo, git_new)
            else: process.append(comm)
 
        log("%d commits: processing %d, skipping %d" % (len(skip)+len(process),
                                                        len(process),
                                                        len(skip)))
            else: schedule = [cmd for cmd in runlist if cmd.name not in rec["results"]]
 
            log("Checking out revision %s [%d/%d]", comm["commit"], idx+1, len(process))
            git_checkout(git_new, sha1)
 

src/j/a/JapaneseStudy-HEAD/anki/plugins/morphman2/morph/auto.py   JapaneseStudy(Download)
import morphemes as M
import rankVocab as R
from util import log, debug, matureDbPath, knownDbPath, deckDbPath, deckPaths, sigterm, updater, clearLog
import util
 
def getDeck( dpath ): # AnkiDeckPath -> Maybe Deck
    if not os.path.exists( dpath ):
        return log( '! deck file not found @ %s' % dpath )
    try:
        return DeckStorage.Deck( dpath )
    except Exception, e:
        if hasattr( e, 'data' ) and e.data.get('type') == 'inuse':
            log( '! deck already open @ %s. skipping' % dpath )
        else:
            log( '!!! deck is corrupted: %s\nException was: %s' % (dpath, e) )
            self.cfg.update( d )
        except IOError:
            log( 'cfg load failed. using defaults' )
        finally:
            self.saveCfg()

src/s/l/SlickLogHandler-0.2.12/slicklog/handler.py   SlickLogHandler(Download)
from .remotelogger import SlickLogRemoteLogger
from .remotelogger import ConnectionBuilder
from .util import log
from .util import is_debug_enabled
from .util import set_debug
        spawn_new_threads=spawn_new_threads)
    self._print_conf(conn_builder, daemon_thread, spawn_new_threads)
    log('{0} initialized.', SlickLogHandler.__name__)
    self.initialized = True
 
  @staticmethod
  def _print_conf(conn_builder, daemon_thread, spawn_new_threads):
    log(' -- Handler Configuration --')
    log('  api_key => {0}', conn_builder.api_key)
    log('  log_group_name => {0}', conn_builder.log_group_name)

  1 | 2 | 3 | 4 | 5 | 6  Next