Ë
    qûàg—  ã                   óJ   — d dl Z d dlmZ d dlmZ  ed«      Z G d„ de«      Zy)é    N)ÚBaseCommand)Ú	getLoggerzdjango.commandsc                   ó"   ‡ — e Zd ZdZˆ fd„Zˆ xZS )ÚLoggingBaseCommandaß  
    A subclass of BaseCommand that logs run time errors to `django.commands`.
    To use this, create a management command subclassing LoggingBaseCommand:

        from django_extensions.management.base import LoggingBaseCommand

        class Command(LoggingBaseCommand):
            help = 'Test error'

            def handle(self, *args, **options):
                raise Exception


    And then define a logging handler in settings.py:

        LOGGING = {
            ... # Other stuff here

            'handlers': {
                'mail_admins': {
                    'level': 'ERROR',
                    'filters': ['require_debug_false'],
                    'class': 'django.utils.log.AdminEmailHandler'
                },
            },
            'loggers': {
                'django.commands': {
                    'handlers': ['mail_admins'],
                    'level': 'ERROR',
                    'propagate': False,
                },
            }

        }

    c                 ó¢   •— 	 t        ‰| �  |i |¤Ž y # t        $ r2}t        j	                  |t        j                  «       ddi¬«       ‚ d }~ww xY w)NÚstatus_codeiô  )Úexc_infoÚextra)ÚsuperÚexecuteÚ	ExceptionÚloggerÚerrorÚsysr	   )ÚselfÚargsÚoptionsÚeÚ	__class__s       €ú_/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django_extensions/management/base.pyr   zLoggingBaseCommand.execute0   sI   ø€ ð	Ü‰G‰O˜TÐ- WÓ-øÜò 	Ü�L‰L˜¤S§\¡\£^¸MÈ3Ð;OˆLÔPØûð	ús   ƒ “	Aœ-A	Á	A)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__)r   s   @r   r   r   
   s   ø„ ñ#÷Jð ó    r   )r   Údjango.core.management.baser   Úloggingr   r   r   © r   r   ú<module>r       s%   ðã 
å 3Ý á	Ð$Ó	%€ô+˜õ +r   