Fixes: #2897 Show hooks output