def log_exc(logger):
 (t, v, tb) = sys.exc_info()
 logger.info(('Exception occured: %s' % t))
 logger.info(('Exception value: %s' % v))
 logger.info(('Exception Info:\n%s' % string.join(traceback.format_list(traceback.extract_tb(tb)))))

def log_exc ( logger ) : ( t , v , tb ) = sys . exc_info ( ) logger . info ( ( 'Exception occured: %s' % t ) ) logger . info ( ( 'Exception value: %s' % v ) ) logger . info ( ( 'Exception Info:\n%s' % string . join ( traceback . format_list ( traceback . extract_tb ( tb ) ) ) ) )
log an exception .