log errors as errors