文件操作 - logging.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/flask/__pycache__/logging.cpython-311.pyc
编辑文件内容
� �j�b� � � � d dl Z d dlZd dlZd dlmZ ddlmZ ej rddl m Z edej fd�� � Zde j defd �Z e j e� � Ze� e j d � � � � ddde j fd �ZdS )� N)� LocalProxy� )�request)�Flask�returnc �L � t rt j d nt 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� � �//usr/lib/python3/dist-packages/flask/logging.py�wsgi_errors_streamr s � � .5�D�7�?�=�)�)�#�*�Dr �loggerc � �� | � � � �| }|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>"