added cat'ng the middleware log on curl error