marinofaggiana 4 年之前
父节点
当前提交
e2347661c3
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      iOSClient/AppDelegate.m
  2. 2 1
      iOSClient/Settings/CCAdvanced.m

+ 1 - 1
iOSClient/AppDelegate.m

@@ -69,7 +69,7 @@
     [[NCCommunicationCommon shared] setupWithUserAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups];
     [[NCCommunicationCommon shared] setupWithUserAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups];
     NSInteger logLevel = [CCUtility getLogLevel];
     NSInteger logLevel = [CCUtility getLogLevel];
     [[NCCommunicationCommon shared] setFileLogWithLevel:logLevel];
     [[NCCommunicationCommon shared] setFileLogWithLevel:logLevel];
-    [[NCCommunicationCommon shared] writeLog:@"[LOG] Start session"];
+    [[NCCommunicationCommon shared] writeLog:[NSString stringWithFormat:@"%@ %lu", @"[LOG] Start session with level", (unsigned long)logLevel]];
     
     
     // Set account, if no exists clear all
     // Set account, if no exists clear all
     tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
     tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];

+ 2 - 1
iOSClient/Settings/CCAdvanced.m

@@ -162,7 +162,8 @@
             [self deselectFormRow:sender];
             [self deselectFormRow:sender];
 
 
             [[NCCommunicationCommon shared] clearFileLog];
             [[NCCommunicationCommon shared] clearFileLog];
-            [[NCCommunicationCommon shared] writeLog:@"[LOG] Start session"];
+            NSInteger logLevel = [CCUtility getLogLevel];
+            [[NCCommunicationCommon shared] writeLog:[NSString stringWithFormat:@"%@ %lu", @"[LOG] Start session with level", (unsigned long)logLevel]];
         };
         };
         [section addFormRow:row];
         [section addFormRow:row];