/usr/lib/python2.6/site-packages/openstackclient/common
Edit: /usr/lib/python2.6/site-packages/openstackclient/common/context.pyc (4828B)
Ñò
;vVc @ sx d Z d d k Z d d k Z d d k Z d „ Z d „ Z d „ Z d e i f d „ ƒ YZ d e f d „ ƒ YZ
d S(
s Application loggingiÿÿÿÿNc C sd t i } | i d j o
t i } n; | i d j o
t i } n | i d j o
t i } n | S( Ni i i ( t loggingt WARNINGt
verbose_levelt ERRORt INFOt DEBUG( t optionst log_level( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/context.pyt log_level_from_options s
c C sÎ | i d ƒ } | i d t ƒ o
d } n | d j o
d } nA | d j o | i d d ƒ } n | d j o
d
} n d } h t i d 6t i d 6t i d 6t i d
6t i d 6i | t i ƒ } | S( NR t debugi i t errori R t warningi t infot critical( t gett FalseR t CRITICALR R R R ( t configR R ( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/context.pyt log_level_from_config% s$
c C sg | t i j o t i d ƒ nC | t i j o t i d ƒ n" | t i j o t i d ƒ n d S( Nt ignoret once( R R t warningst simplefilterR R ( R ( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/context.pyt set_warning_filter? s t _FileFormatterc B s5 e Z d Z d Z d Z d Z d Z d d d „ Z RS( s0 Customize the logging format for logging handlers; %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s s% [%(cloud)s %(username)s %(project)s] s %(message)ss %Y-%m-%d %H:%M:%Sc K sÿ h } | oC h t | d d ƒ d 6t | d d ƒ d 6t | d d ƒ d 6} nT | oL h | i i d d ƒ d 6| i i d d ƒ d 6| i i d d ƒ d 6} n | o" | i | i | | i | _ n | i | i | _ t i i
| | i | i ƒ d S( Nt cloudt t os_project_namet projectt usernamet project_name( t getattrR R t autht _LOG_MESSAGE_BEGINt _LOG_MESSAGE_CONTEXTt _LOG_MESSAGE_ENDt fmtR t Formattert __init__t _LOG_DATE_FORMAT( t selfR R t kwargst context( ( sN /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/common/context.pyR&