Change log.info to log.error when after_hook fails