print log on failure