Format: application/x-python-code
1 o
2
3 D'hI � @ s� d dl mZ d dlZd dlZd dlZd dlmZ ddlm Z ej
4 r'ddlmZ edd d
5 ��Z
6 ddd�Ze�e
7 �Ze�e�d�� ddd�ZdS )� )�annotationsN)�
8 LocalProxy� )�request)�App�return�t.TextIOc C s t rt jd S tjS )a� Find the most appropriate error stream for the application. If a request
9 is active, log to ``wsgi.errors``, otherwise use ``sys.stderr``.
10
11 If you configure your own :class:`logging.StreamHandler`, you may want to
12 use this for the stream. If you are using file or dict configuration and
13 can't import this directly, you can refer to it as
14 ``ext://flask.logging.wsgi_errors_stream``.
15 zwsgi.errors)r �environ�sys�stderr� r r �CC:\Users\shubh\Videos\agent\nova\Lib\site-packages\flask/logging.py�wsgi_errors_stream s
16
17 r �logger�logging.Logger�boolc sF | � � � | }|r!t� fdd�|jD ��rdS |js dS |j}|sdS )z�Check if there is a handler in the logging chain that will handle the
18 given logger's :meth:`effective level <~logging.Logger.getEffectiveLevel>`.
19 c 3 s � | ]}|j � kV qd S )N��level)�.0�handlerr r r
20 � <genexpr>'