marinofaggiana 4 years ago
parent
commit
e2347661c3
2 changed files with 3 additions and 2 deletions
  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];
     NSInteger logLevel = [CCUtility getLogLevel];
     [[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
     tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];

+ 2 - 1
iOSClient/Settings/CCAdvanced.m

@@ -162,7 +162,8 @@
             [self deselectFormRow:sender];
 
             [[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];