Explorar el Código

add activity LOG

Marino Faggiana hace 7 años
padre
commit
c9de5a741d
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      iOSClient/Networking/CCNetworking.m

+ 7 - 1
iOSClient/Networking/CCNetworking.m

@@ -437,6 +437,9 @@
             if (fileName.length > 0 && serverUrl.length > 0)
                 [self downloadFileSuccessFailure:fileName fileID:metadata.fileID etag:etag date:date serverUrl:serverUrl selector:metadata.sessionSelector selectorPost:metadata.sessionSelectorPost errorCode:errorCode];
         } else {
+            
+            [[NCManageDatabase sharedInstance] addActivityClient:fileName fileID:@"" action:k_activityDebugActionUpload selector:@"" note:[NSString stringWithFormat:@"Serius error internal download : metadata not found %@", url] type:k_activityTypeFailure verbose:k_activityVerboseDefault activeUrl:_activeUrl];
+            
             NSLog(@"[LOG] Serius error internal download : metadata not found %@ ", url);
         }
     }
@@ -479,7 +482,10 @@
             if (fileName.length > 0 && fileID.length > 0 && etag.length > 0 && serverUrl.length > 0)
                 [self uploadFileSuccessFailure:metadata fileName:fileName fileID:fileID etag:etag date:date serverUrl:serverUrl errorCode:errorCode];
         } else {
-            NSLog(@"[LOG] Serius error internal upload : metadata not found %@ ", url);
+            
+            [[NCManageDatabase sharedInstance] addActivityClient:fileName fileID:@"" action:k_activityDebugActionUpload selector:@"" note:[NSString stringWithFormat:@"Serius error internal upload : metadata not found %@", url] type:k_activityTypeFailure verbose:k_activityVerboseDefault activeUrl:_activeUrl];
+            
+            NSLog(@"[LOG] Serius error internal upload : metadata not found %@", url);
         }
     }
 }