Browse Source

Logging enhancement: fix iOS and macOS builds

LouYihua 7 years ago
parent
commit
835ea5ad75
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ios/SDLPal/SDLPal/util.mm
  2. 1 1
      macos/util.mm

+ 1 - 1
ios/SDLPal/SDLPal/util.mm

@@ -72,7 +72,7 @@ UTIL_Platform_Init(
 {
     UTIL_LogAddOutputCallback([](LOGLEVEL, const char* str, const char*)->void {
         NSLog(@"%s",str);
-    });
+    }, PAL_DEFAULT_LOGLEVEL);
     gConfig.fLaunchSetting = FALSE;
     return 0;
 }

+ 1 - 1
macos/util.mm

@@ -27,7 +27,7 @@ UTIL_Platform_Init(
 {
     UTIL_LogAddOutputCallback([](LOGLEVEL, const char* str, const char*)->void {
         NSLog(@"%s",str);
-    });
+    }, PAL_DEFAULT_LOGLEVEL);
     gConfig.fLaunchSetting = FALSE;
     return 0;
 }