Logging errors is causing errors??