#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( StandardLogging , self ) . setUp ( ) #NEWLINE# root = std_logging . getLogger ( ) #NEWLINE# root . setLevel ( std_logging . DEBUG ) #NEWLINE# if ( os . environ . get ( 'OS_DEBUG' ) in _TRUE_VALUES ) : #NEWLINE# #INDENT# level = std_logging . DEBUG #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# level = std_logging . INFO #NEWLINE# #UNINDENT# fs = '%(asctime)s %(levelname)s [%(name)s] %(message)s' #NEWLINE# self . logger = self . useFixture ( fixtures . FakeLogger ( format = fs , level = None ) ) #NEWLINE# root . handlers [ 0 ] . setLevel ( level ) #NEWLINE# if ( level > std_logging . DEBUG ) : #NEWLINE# #INDENT# handler = NullHandler ( ) #NEWLINE# self . useFixture ( fixtures . LogHandler ( handler , nuke_handlers = False ) ) #NEWLINE# handler . setLevel ( std_logging . DEBUG ) #NEWLINE# std_logging . getLogger ( 'migrate.versioning.api' ) . setLevel ( std_logging . WARNING )