marinofaggiana 4 éve
szülő
commit
34703931ca
3 módosított fájl, 5 hozzáadás és 6 törlés
  1. 1 1
      Cartfile.resolved
  2. 1 1
      iOSClient/AppDelegate.m
  3. 3 4
      iOSClient/Settings/CCAdvanced.m

+ 1 - 1
Cartfile.resolved

@@ -18,7 +18,7 @@ github "krzyzanowskim/OpenSSL" "1.0.218"
 github "malcommac/SwiftRichString" "3.7.2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
 github "marinofaggiana/TOPasscodeViewController" "0.0.7"
-github "nextcloud/ios-communication-library" "ca67fd11502a6450098f33b01d42af266513347f"
+github "nextcloud/ios-communication-library" "cb8657b2d688ca20464bc25d56c37c79c3a6db51"
 github "realm/realm-cocoa" "v5.3.4"
 github "rechsteiner/Parchment" "v2.4.0"
 github "scenee/FloatingPanel" "v1.7.5"

+ 1 - 1
iOSClient/AppDelegate.m

@@ -67,7 +67,7 @@
     // Networking
     [[NCCommunicationCommon shared] setupWithDelegate:[NCNetworking shared]];
     [[NCCommunicationCommon shared] setupWithUserAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups];
-    [[NCCommunicationCommon shared] setFileLog:1];
+    [[NCCommunicationCommon shared] setFileLogWithLevel:1];
     [[NCCommunicationCommon shared] writeLog:@"[LOG] Start session"];
     
     // Set account, if no exists clear all

+ 3 - 4
iOSClient/Settings/CCAdvanced.m

@@ -132,10 +132,9 @@
     section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_diagnostics_", nil)];
     [form addFormSection:section];
     
-    NSString *documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
-    NSString *logFile = [documentPath stringByAppendingPathComponent:@"communication.log"];
+    NSString *fileNameLog = [[NCCommunicationCommon shared] getFileNameLog];
     
-    if ([[NSFileManager defaultManager] fileExistsAtPath:logFile]) {
+    if ([[NSFileManager defaultManager] fileExistsAtPath:fileNameLog]) {
         
         row = [XLFormRowDescriptor formRowDescriptorWithTag:@"log" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_view_log_", nil)];
         row.cellConfigAtConfigure[@"backgroundColor"] = NCBrandColor.sharedInstance.backgroundCell;
@@ -148,7 +147,7 @@
             [self deselectFormRow:sender];
             
             NCViewerQuickLook *viewerQuickLook = [NCViewerQuickLook new];
-            [viewerQuickLook quickLookWithUrl:[NSURL fileURLWithPath:logFile] viewController:self];
+            [viewerQuickLook quickLookWithUrl:[NSURL fileURLWithPath:fileNameLog] viewController:self];
         };
         [section addFormRow:row];