|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib/python2.7/site-packages/south/ |
Upload File : |
� (��Pc @ si d d l Z d d l Z d d l m Z d e j f d � � YZ d � Z d � Z d � Z e � Z d S( i����N( t settingst NullHandlerc B s e Z d � Z RS( c C s d S( N( ( t selft record( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyt emit s ( t __name__t __module__R ( ( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyR s c C s� t t d t � } t t d t � } | r� | rq t t j � d k r} t j t j | � � t j t j � q} q� t d � � n t S( s? Attach a file handler to the logger if there isn't one already.t SOUTH_LOGGING_ONt SOUTH_LOGGING_FILEi sE SOUTH_LOGGING_ON is True. You also need a SOUTH_LOGGING_FILE setting.( t getattrR t Falset lent _loggert handlerst addHandlert loggingt FileHandlert setLevelt DEBUGt IOError( t debug_ont logging_file( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyt get_logger s c C sD x= t j D]2 } t j | � t | t j � r | j � q q Wd S( sO Closes the logger handler for the file, so we can remove the file after a test.N( R R t removeHandlert isinstanceR R t close( t handler( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyt close_logger s c C s# t j d � } | j t � � | S( s Initialize the south loggert south( R t getLoggerR R ( t logger( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyt init_logger s ( t sysR t django.confR t HandlerR R R R R ( ( ( s0 /usr/lib/python2.7/site-packages/south/logger.pyt <module> s