Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/celery/app/__pycache__/log.cpython-39.pyc
Ðазад
a t�hk# � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m Z ddlmZ ddl mZmZ ddlmZ dd lmZmZmZmZmZmZ dd lmZ ddlmZ dZej�d d�Z G dd� de�Z!G dd� d�Z"dS )z�Logging configuration. The Celery instances logging section: ``Celery.log``. Sets up logging for the worker and other programs, redirects standard outs, colors log output, patches logging related compatibility fixes, and so on. � N)�WatchedFileHandler)�set_default_encoding_file)�signals)�get_current_task)�CDeprecationWarning�CPendingDeprecationWarning)�class_property)�ColorFormatter�LoggingProxy� get_logger�get_multiprocessing_logger�mlevel�reset_multiprocessing_logger)�node_format)�colored)� TaskFormatter�Logging�MP_LOGFc s e Zd ZdZ� fdd�Z� ZS )r z1Formatter for tasks, adding the task name and id.c sP t � }|r(|jr(|jj|jj|jd� n|j�dd� |j�dd� t� �|�S )N)�task_id� task_namer z???r ) r �request�__dict__�update�id�name� setdefault�super�format)�self�record�task�� __class__� �~/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/celery/app/log.pyr "