Simplify logging on error