Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/flask/__pycache__/logging.cpython-39.pyc
Ðазад
a p�h� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z edd� �Z d d � Ze�e �Z e �e�d�� dd � Zdd� ZdS )zN flask.logging ~~~~~~~~~~~~~ :copyright: 2010 Pallets :license: BSD-3-Clause � )�absolute_importN)� LocalProxy� )�requestc C s t rt jd S tjS )a� Find the most appropriate error stream for the application. If a request is active, log to ``wsgi.errors``, otherwise use ``sys.stderr``. If you configure your own :class:`logging.StreamHandler`, you may want to use this for the stream. If you are using file or dict configuration and can't import this directly, you can refer to it as ``ext://flask.logging.wsgi_errors_stream``. zwsgi.errors)r �environ�sys�stderr� r r �}/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/flask/logging.py�wsgi_errors_stream s r c s@ | � � � | }|r<t� fdd�|jD ��r,dS |js4q<|j}qdS )z�Check if there is a handler in the logging chain that will handle the given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`. c 3 s | ]}|j � kV qd S )N��level)�.0�handlerr r r � <genexpr>) � z$has_level_handler.<locals>.<genexpr>TF)�getEffectiveLevel�any�handlers� propagate�parent)�logger�currentr r r �has_level_handler! s r z6[%(asctime)s] %(levelname)s in %(module)s: %(message)sc C s | j tjkp| jp| jp| j S )z�Decide if a logger has direct configuration applied by checking its properties against the defaults. :param logger: The :class:`~logging.Logger` to inspect. )r �logging�NOTSETr �filtersr )r r r r �_has_config<