add logger to response json error