Question
Why do I see "---debug_hooks---" output when running cPanel standardized hooks?
Answer
You will see this in verbose output that will display more information regarding the hook being used.
An example would be /scripts/rebuildhttpdconf and with "Standardized Hooks - Debug Mode" set to On you would see:
#/scripts/rebuildhttpdconf
info [rebuildhttpdconf] ---debug_hooks---
info [rebuildhttpdconf] msg: No hooks found for 'pre' stage of context
info [rebuildhttpdconf] context: scripts::build_apache_conf
info [rebuildhttpdconf] stage: pre
info [rebuildhttpdconf] result: 0
info [rebuildhttpdconf] data: []
info [rebuildhttpdconf] ---debug_hooks---
info [rebuildhttpdconf] msg: No hooks found for 'post' stage of context
info [rebuildhttpdconf] context: scripts::build_apache_conf
info [rebuildhttpdconf] stage: post
info [rebuildhttpdconf] result: 0
info [rebuildhttpdconf] data: []
Built /etc/apache2/conf/httpd.conf OK
#
and with "Standardized Hooks - Debug Mode" set to off you just see:
#/scripts/rebuildhttpdconf
Built /etc/apache2/conf/httpd.conf OK
#
So, the solution here is to set "Standardized Hooks - Debug Mode" to Off in WHM under Tweak Settings.