Fixed bug: logging of installed hooks didn't depend on debug option