mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-05 22:40:21 +08:00
Migrate dangling invocations of NSLog -> RKLog. refs #578
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
} else {
|
||||
RKLogDebug(@"Failed to find object to connect relationship '%@' with primary key value '%@'", relationshipName, valueOfLocalPrimaryKeyAttribute);
|
||||
}
|
||||
NSLog(@"setValue of %@ forKeyPath %@", relatedObject, relationshipName);
|
||||
RKLogTrace(@"setValue of %@ forKeyPath %@", relatedObject, relationshipName);
|
||||
[self.destinationObject setValue:relatedObject forKeyPath:relationshipName];
|
||||
} else {
|
||||
RKLogTrace(@"Failed to find primary key value for attribute '%@'", primaryKeyAttribute);
|
||||
|
||||
@@ -815,7 +815,7 @@ RKRequestMethod RKRequestMethodTypeFromName(NSString *methodName) {
|
||||
NSError *error = nil;
|
||||
NSString* parsedValue = [parser stringFromObject:body error:&error];
|
||||
|
||||
NSLog(@"parser=%@, error=%@, parsedValue=%@", parser, error, parsedValue);
|
||||
RKLogTrace(@"parser=%@, error=%@, parsedValue=%@", parser, error, parsedValue);
|
||||
|
||||
if (error == nil && parsedValue) {
|
||||
self.params = [RKRequestSerialization serializationWithData:[parsedValue dataUsingEncoding:NSUTF8StringEncoding]
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
NSError* error = nil;
|
||||
|
||||
if(! [[NSFileManager defaultManager] createDirectoryAtPath:basePath withIntermediateDirectories:NO attributes:nil error:&error]) {
|
||||
NSLog(@"%@", error);
|
||||
RKLogError(@"%@", error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
NSError* error = nil;
|
||||
|
||||
if(![sharedFM createDirectoryAtURL:appDirectory withIntermediateDirectories:NO attributes:nil error:&error]) {
|
||||
NSLog(@"%@", error);
|
||||
RKLogError(@"%@", error);
|
||||
}
|
||||
}
|
||||
return [appDirectory path];
|
||||
|
||||
Reference in New Issue
Block a user