U
    X7h                     @   sN   d dl Z d dlZd dlZddlmZ d dlZdd Zdd Ze	dd	d
Z
dS )    N   )monkeyc                 C   s   | j tjk S )N)levelnologgingWARNING)record r   L/var/www/formularioweb/env/lib/python3.8/site-packages/setuptools/logging.py_not_warning
   s    r
   c                  C   sr   t  } | t j t tj}|t | |f}t jdd|t j	d t
tjjrntttjd tjtj_dS )z
    Configure logging to emit warning and above to stderr
    and everything else to stdout. This behavior is provided
    for compatibility with distutils.log but may change in
    the future.
    z	{message}{)formatstylehandlerslevelset_thresholdN)r   StreamHandlersetLevelr   sysstdout	addFilterr
   basicConfigDEBUGinspectismodule	distutilsdistlogr   Z
patch_funcr   )Zerr_handlerZout_handlerr   r   r   r	   	configure   s    
   r   r   c                 C   s   t j| d  t| S )N
   )r   rootr   r   Z	unpatchedr   r   r   r	   r   &   s    r   )r   r   r    r   Zdistutils.logr   r
   r   intr   r   r   r   r	   <module>   s   