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