Procházet zdrojové kódy

增加错误日志记录开关。

Pen Li před 9 roky
rodič
revize
0de37eeccf

binární
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 4 - 1
RedAnt ERP Mobile/iSales-NPD/AppDelegate.m

@@ -742,7 +742,10 @@ void UncaughtExceptionHandler(NSException *exception) {
 }
 
 - (void)initialExceptionHandler {
-    NSSetUncaughtExceptionHandler(&UncaughtExceptionHandler);
+    if (exception_switch == 1) {
+        NSSetUncaughtExceptionHandler(&UncaughtExceptionHandler);
+    }
+    
 }
 
 - (void)becomeObserver {

+ 2 - 0
RedAnt ERP Mobile/iSales-NPD/config.h

@@ -11,8 +11,10 @@
 #define BUILD_NPD
 
 #define test_server
+#define exception_switch 0
 
 #define PDF_DEBUG false
+
 //#define ENCRYPT_OFF
  
 #define CONTACT_LIST 1