Adding logging to build hook