관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f � � � d Z ddlmZ ddlZddlmZ ddlmZmZm Z m Z ddlmZ G d� dej � � Zdd �Zdej fd�Z G d� d e� � ZdS )z� raven.contrib.celery ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_importN)�SoftTimeLimitExceeded)�after_setup_logger�task_failure�task_prerun�task_postrun)� SentryHandlerc � � e Zd Zd� ZdS )�CeleryFilterc � � t |di � � }t |t � � s|j dk S |� d|j dk � � S )N�data� _log_error�internal)�getattr� isinstance�dict�funcName�get)�self�record� extra_datas �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/raven/contrib/celery/__init__.py�filterzCeleryFilter.filter sM � ��V�V�R�0�0� ��*�d�+�+� 3��?�l�2�2��~�~�j�&�/�\�*I�J�J�J� N)�__name__� __module__�__qualname__r � r r r r s( � � � � � �K� K� K� K� Kr r Fc �L � t | |�� � � � � d S )N)�ignore_expected)�SentryCeleryHandler�install��clientr s r �register_signalr% s'