File: D:/web/hyperflight/apps/inxpress/.venv/Lib/site-packages/flask/__pycache__/logging.cpython-311.pyc
�
��iI � �� � d dl mZ d dlZd dlZd dlZd dlmZ ddlm Z ej
rddlmZ edd �� � Z
dd
�Z ej e
� � Ze� ej d� � � � dd�ZdS )� )�annotationsN)�
LocalProxy� )�request)�App�return�t.TextIOc �L � t rt j d S t j S )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� � �ID:\web\hyperflight\apps\inxpress\.venv\Lib\site-packages\flask/logging.py�wsgi_errors_streamr s! � � � .���}�-�-��:�r �logger�logging.Logger�boolc � �� | � � � �| }|r3t �fd�|j D � � � � rdS |j sn |j }|�3dS )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 �. �K � | ]}|j �k V � �d S )N)�level)�.0�handlerr s �r � <genexpr>z$has_level_handler.<locals>.<genexpr>'