コード例 #1
0
ファイル: __init__.py プロジェクト: codeix/bst.pygasus.rdb
def registerSessionEvents(session):
    current = transaction.get();
    if not current.description:
       raise BstSystemError('Current transaction has no description!')
   
    logger.debug('Joining transaction [%s, txn.%d]', str(current.description), get_thread_ident())
    register(session)
コード例 #2
0
ファイル: __init__.py プロジェクト: codeix/bst.pygasus.rdb
def registerSessionEvents(session):
    current = transaction.get()
    if not current.description:
        raise BstSystemError('Current transaction has no description!')

    logger.debug('Joining transaction [%s, txn.%d]', str(current.description),
                 get_thread_ident())
    register(session)
コード例 #3
0
def _makeLogger():  #pragma NO COVER
    if _LOGGER is not None:
        return _LOGGER
    return logging.getLogger("txn.%d" % get_thread_ident())
コード例 #4
0
def _makeLogger(): #pragma NO COVER
    if _LOGGER is not None:
        return _LOGGER
    return logging.getLogger("txn.%d" % get_thread_ident())