l#goHdZddlmZddlmZmZeeZiZddZ dS)z9Run default hooks for files update and log errors if any.) getLogger) check_run CheckRunErrorreturnNcK|rt|j}|rb|rP t |gd{VdS#t $r&}t d|Yd}~dSd}~wwxYwdSdSdS)zDRun delivered hooks for files update. Errors are logged up on stack.NzError during hook execution: %s) DEFAULT_HOOKSgettypeexistsrrloggererror)files_index_object is_updatedhookes P/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/files/hooks.py default_hookr sC  !3!899  CDKKMM C C'''''''''''  C C C >BBBBBBBBB C CC C C C CsA BA>>B)rN) __doc__loggingrdefence360agent.utilsrr__name__r rrrrsm??:::::::: 8   CCCCCCr