Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def _makeLogger():  #pragma NO COVER
    if _LOGGER is not None:
        return _LOGGER
    return logging.getLogger("txn.%d" % get_thread_ident())
Exemplo n.º 4
0
def _makeLogger(): #pragma NO COVER
    if _LOGGER is not None:
        return _LOGGER
    return logging.getLogger("txn.%d" % get_thread_ident())