관리-도구
편집 파일: atexit.cpython-37.pyc
B T a- � @ s� d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlmZ erpd dl mZ d dl mZ d d � ZG dd� de �ZdS ) � )�absolute_importN)�Hub)�logger)�Integration)�MYPY)�Any)�Optionalc C sH dd� }|d| � |d| � |dt jdkr2dp4d � tj�� d S ) z�This is the default shutdown callback that is set on the options. It prints out a message to stderr that informs the user that some events are still pending and the process is waiting for them to flush out. c S s t j�| d � d S )N� )�sys�stderr�write)�msg� r �O/opt/alt/python37/lib/python3.7/site-packages/sentry_sdk/integrations/atexit.py�echo s zdefault_callback.<locals>.echoz6Sentry is attempting to send %i pending error messageszWaiting up to %s secondszPress Ctrl-%s to quit�nt�Break�CN)�os�namer r �flush)�pending�timeoutr r r r �default_callback s r c @ s&