def test_statsd_fail():
 logger = Statsd(Config())
 logger.sock = MockSocket(True)
 logger.info('No impact on logging')
 logger.debug('No impact on logging')
 logger.critical('No impact on logging')
 logger.error('No impact on logging')
 logger.warning('No impact on logging')
 logger.exception('No impact on logging')

def test_statsd_fail ( ) : logger = Statsd ( Config ( ) ) logger . sock = MockSocket ( True ) logger . info ( 'No impact on logging' ) logger . debug ( 'No impact on logging' ) logger . critical ( 'No impact on logging' ) logger . error ( 'No impact on logging' ) logger . warning ( 'No impact on logging' ) logger . exception ( 'No impact on logging' )
udp socket fails .