Simplify error logging