mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 20:31:13 +08:00
Update RKTestFactory to silence logging output during setup/tear down operations. closes #764
* Introduced new logging helpers for silencing components. * Check for existence of data store at path before firing deletion to avoid log warning on failure. * Silence logging for reachability and cache during factory initialization of RKClient and RKObjectManager * Adjust log levels on cache components from info to debug
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
|
||||
- (void)load
|
||||
{
|
||||
RKLogInfo(@"Loading entity cache for Entity '%@' by attribute '%@'", self.entity.name, self.attribute);
|
||||
RKLogDebug(@"Loading entity cache for Entity '%@' by attribute '%@'", self.entity.name, self.attribute);
|
||||
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
|
||||
[fetchRequest setEntity:self.entity];
|
||||
[fetchRequest setResultType:NSManagedObjectIDResultType];
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
- (void)flush
|
||||
{
|
||||
RKLogInfo(@"Flushing entity cache for Entity '%@' by attribute '%@'", self.entity.name, self.attribute);
|
||||
RKLogDebug(@"Flushing entity cache for Entity '%@' by attribute '%@'", self.entity.name, self.attribute);
|
||||
self.attributeValuesToObjectIDs = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user