Skip to content

Commit

Permalink
Add new addActivityClient
Browse files Browse the repository at this point in the history
  • Loading branch information
marinofaggiana committed Sep 1, 2017
1 parent 837c0b8 commit abaeae6
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions iOSClient/Main/CCMain.m
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,10 @@ - (void)getExternalSitesServerSuccess:(NSArray *)listOfExternalSites

- (void)getExternalSitesServerFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
{
NSLog(@"[LOG] Get external site failure error %lu, %@", (long)errorCode, message);
NSString *error = [NSString stringWithFormat:@"Get external site failure error %lu, %@", (long)errorCode, message];
NSLog(@"[LOG] %@", error);

[[NCManageDatabase sharedInstance] addActivityClient:@"" fileID:@"" action:k_activityDebugActionCapabilities selector:@"Get External Sites Server" note:error type:k_activityTypeFailure verbose:k_activityVerboseHigh activeUrl:app.activeUrl];
}

#pragma --------------------------------------------------------------------------------------------
Expand All @@ -1126,7 +1129,10 @@ - (void)getActivityServerSuccess:(NSArray *)listOfActivity

- (void)getActivityServerFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
{
NSLog(@"[LOG] Get Activity Server failure error %lu, %@", (long)errorCode, message);
NSString *error = [NSString stringWithFormat:@"Get Activity Server failure error %lu, %@", (long)errorCode, message];
NSLog(@"[LOG] %@", error);

[[NCManageDatabase sharedInstance] addActivityClient:@"" fileID:@"" action:k_activityDebugActionCapabilities selector:@"Get Activity Server" note:error type:k_activityTypeFailure verbose:k_activityVerboseHigh activeUrl:app.activeUrl];
}

#pragma --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -1173,8 +1179,11 @@ - (void)getNotificationServerSuccess:(NSArray *)listOfNotifications

- (void)getNotificationServerFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
{
NSLog(@"[LOG] Get Notification Server failure error %lu, %@", (long)errorCode, message);

NSString *error = [NSString stringWithFormat:@"Get Notification Server failure error %lu, %@", (long)errorCode, message];
NSLog(@"[LOG] %@", error);

[[NCManageDatabase sharedInstance] addActivityClient:@"" fileID:@"" action:k_activityDebugActionCapabilities selector:@"Get Notification Server" note:error type:k_activityTypeFailure verbose:k_activityVerboseHigh activeUrl:app.activeUrl];

// Update NavigationBar
if (!_isSelectedMode)
[self setUINavigationBarDefault];
Expand All @@ -1198,7 +1207,10 @@ - (void)viewNotification

- (void)getUserProfileFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
{
NSLog(@"[LOG] Get user profile failure error %lu, %@", (long)errorCode, message);
NSString *error = [NSString stringWithFormat:@"Get user profile failure error %lu, %@", (long)errorCode, message];
NSLog(@"[LOG] %@", error);

[[NCManageDatabase sharedInstance] addActivityClient:@"" fileID:@"" action:k_activityDebugActionCapabilities selector:@"Get user profile Server" note:error type:k_activityTypeFailure verbose:k_activityVerboseHigh activeUrl:app.activeUrl];
}

- (void)getUserProfileSuccess:(CCMetadataNet *)metadataNet userProfile:(OCUserProfile *)userProfile
Expand All @@ -1224,7 +1236,10 @@ - (void)getUserProfileSuccess:(CCMetadataNet *)metadataNet userProfile:(OCUserPr

- (void)getCapabilitiesOfServerFailure:(CCMetadataNet *)metadataNet message:(NSString *)message errorCode:(NSInteger)errorCode
{
NSLog(@"[LOG] Get Capabilities failure error %lu, %@", (long)errorCode, message);
NSString *error = [NSString stringWithFormat:@"Get Capabilities failure error %lu, %@", (long)errorCode, message];
NSLog(@"[LOG] %@", error);

[[NCManageDatabase sharedInstance] addActivityClient:@"" fileID:@"" action:k_activityDebugActionCapabilities selector:@"Get Capabilities of Server" note:error type:k_activityTypeFailure verbose:k_activityVerboseHigh activeUrl:app.activeUrl];

// Change Theming color
[app settingThemingColorBrand];
Expand Down

0 comments on commit abaeae6

Please sign in to comment.