§
    kÍâh—  ã                   óX   — d dl Z d dlmZ d dlmZ  ed¦  «        Z G d„ de¦  «        ZdS )é    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          ¦   «         j        |i |¤Ž d S # t          $ r6}t                               |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       €úX/var/www/histauto/venv/lib/python3.11/site-packages/django_extensions/management/base.pyr   zLoggingBaseCommand.execute0   sn   ø€ ð	Ø�E‰GŒGŒO˜TÐ- WÐ-Ð-Ð-Ð-Ð-øÝð 	ð 	ð 	Ý�LŠL˜¥S¤\¡^¤^¸MÈ3Ð;OˆLÑPÔPÐPØøøøøð	øøøs   ƒ ž
A¨1AÁA)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__)r   s   @r   r   r   
   sC   ø€ € € € € ð#ð #ðJð ð ð ð ð ð ð ð ó    r   )r   Údjango.core.management.baser   Úloggingr   r   r   © r   r   ú<module>r       sv   ðà 
€
€
€
à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø Ð Ð Ð Ð Ð à	ˆÐ$Ñ	%Ô	%€ð+ð +ð +ð +ð +˜ñ +ô +ð +ð +ð +r   