summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihail Vyrko <mvyrko@qulix.com>2019-04-03 14:59:37 +0300
committerMihail Vyrko <mvyrko@qulix.com>2019-04-03 14:59:37 +0300
commita07060d8a2a16a6534e4f6175b3bed915112855f (patch)
tree87d159bc51d569a831a6c9eb4e4b139eefb764da
parent4b7e158a59da34fc20be669504c6fc9918c4604a (diff)
downloadsdl_ios-a07060d8a2a16a6534e4f6175b3bed915112855f.tar.gz
add logging retrieving object from store errors
-rw-r--r--SmartDeviceLink/NSMutableDictionary+Store.m2
-rw-r--r--SmartDeviceLink/SDLLogFileModuleMap.m2
2 files changed, 3 insertions, 1 deletions
diff --git a/SmartDeviceLink/NSMutableDictionary+Store.m b/SmartDeviceLink/NSMutableDictionary+Store.m
index 5cebee7d3..65a72171c 100644
--- a/SmartDeviceLink/NSMutableDictionary+Store.m
+++ b/SmartDeviceLink/NSMutableDictionary+Store.m
@@ -56,6 +56,7 @@ NS_ASSUME_NONNULL_BEGIN
// The object in the store is not correct, we'll assert in debug and return an error and nil
NSError *wrongObjectError = [NSError sdl_store_invalidObjectErrorWithObject:obj expectedType:classType];
+ SDLLogE(@"Retrieving object from store error: %@", wrongObjectError.localizedFailureReason);
NSAssert(NO, wrongObjectError.localizedFailureReason);
if (error) {
@@ -93,6 +94,7 @@ NS_ASSUME_NONNULL_BEGIN
wrongObjectError = [NSError sdl_store_invalidObjectErrorWithObject:array expectedType:NSArray.class];
}
+ SDLLogE(@"Retrieving array from store error: %@", wrongObjectError.localizedFailureReason);
NSAssert(NO, wrongObjectError.localizedFailureReason);
if (error) {
*error = wrongObjectError;
diff --git a/SmartDeviceLink/SDLLogFileModuleMap.m b/SmartDeviceLink/SDLLogFileModuleMap.m
index c6e67e476..9af182d88 100644
--- a/SmartDeviceLink/SDLLogFileModuleMap.m
+++ b/SmartDeviceLink/SDLLogFileModuleMap.m
@@ -44,7 +44,7 @@
}
+ (SDLLogFileModule *)sdl_rpcModule {
- return [SDLLogFileModule moduleWithName:@"RPC" files:[NSSet setWithArray:@[@"SDLRPCPayload"]]];
+ return [SDLLogFileModule moduleWithName:@"RPC" files:[NSSet setWithArray:@[@"SDLRPCPayload", @"NSMutableDictionary+Store"]]];
}
+ (SDLLogFileModule *)sdl_dispatcherModule {