forked from loafle/openapi-generator-original
enabled logging
This commit is contained in:
parent
bcabb03225
commit
7a6d6d27ff
@ -309,13 +309,13 @@ static bool loggingEnabled = false;
|
|||||||
JSONRequestOperationWithRequest:request
|
JSONRequestOperationWithRequest:request
|
||||||
success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
|
success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
|
||||||
if([self executeRequestWithId:requestId]) {
|
if([self executeRequestWithId:requestId]) {
|
||||||
// if(self.logServerResponses)
|
if(self.logServerResponses)
|
||||||
[self logResponse:JSON forRequest:request error:nil];
|
[self logResponse:JSON forRequest:request error:nil];
|
||||||
completionBlock(JSON, nil);
|
completionBlock(JSON, nil);
|
||||||
}
|
}
|
||||||
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id data) {
|
} failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id data) {
|
||||||
if([self executeRequestWithId:requestId]) {
|
if([self executeRequestWithId:requestId]) {
|
||||||
// if(self.logServerResponses)
|
if(self.logServerResponses)
|
||||||
[self logResponse:nil forRequest:request error:error];
|
[self logResponse:nil forRequest:request error:error];
|
||||||
completionBlock(nil, error);
|
completionBlock(nil, error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user