bg6ddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z e r ddl mZddl mZd ZGd d e ZdS) )absolute_importN)Hub)logger) Integration) TYPE_CHECKING)Any)Optionalcd}|d|z|d|z|dtjdkrdpdztjdS) zThis 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. cJtj|dzdS)N )sysstderrwrite)msgs U/opt/cloudlinux/venv/lib64/python3.11/site-packages/sentry_sdk/integrations/atexit.pyechozdefault_callback..echos" t$$$$$z.Sentry is attempting to send %i pending eventszWaiting up to %s secondszPress Ctrl-%s to quitntBreakCN)osnamer rflush)pendingtimeoutrs rdefault_callbackrs%%% D 9G CDDDD #g -...D BGtO$?$F3 GHHHJrc0eZdZdZddZedZdS)AtexitIntegrationatexitNc&|t}||_dSN)rcallback)selfr"s r__init__zAtexitIntegration.__init__&s  'H  rc0tjd}dS)Nctjdtj}|t }|Ltjd||j}||j dSdS)Nzatexit: got shutdown signalzatexit: shutting down client)r") rdebugrmainget_integrationr end_sessionclientcloser")hub integrationr+s r _shutdownz/AtexitIntegration.setup_once.._shutdown/s L6 7 7 7(C--.?@@K& ;<<<!!! k&: ;;;;;'&r)rregister)r/s r setup_oncezAtexitIntegration.setup_once,s)  < <  < < r>s&&&&&& ######//////++++++ "<<<<< <<<<