feat: improve logging for internal hooks