관리-도구
편집 파일: hooks.cpython-311.pyc
� IMgo � �H � d Z ddlmZ ddlmZmZ ee� � Zi Zdd�Z dS )z9Run default hooks for files update and log errors if any.� )� getLogger)� check_run� CheckRunError�returnNc � � K � |r�t � | j � � }|rb|� � � rP t |g� � � d{V �� dS # t $ r&}t � d|� � Y d}~dS d}~ww xY wdS dS dS )zDRun delivered hooks for files update. Errors are logged up on stack.NzError during hook execution: %s)� DEFAULT_HOOKS�get�type�existsr r �logger�error)�files_index_object� is_updated�hook�es �P/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/files/hooks.py�default_hookr s� � � � �� C�� � �!3�!8�9�9��� C�D�K�K�M�M� C� C����'�'�'�'�'�'�'�'�'�'�'�� � C� C� C����>��B�B�B�B�B�B�B�B�B����� C����C� C� C� C� C� Cs �A � B�A>�>B)r N) �__doc__�loggingr �defence360agent.utilsr r �__name__r r r � � r �<module>r sm �� ?� ?� � � � � � � :� :� :� :� :� :� :� :� ��8� � ��� �C� C� C� C� C� Cr