Improve hook logging