@@ -54,9 +54,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
54
54
// MARK: - Initialization Examples
55
55
56
56
func initializeOptimizelySDKAsynchronous( ) {
57
- optimizely = OptimizelyClient ( sdkKey: sdkKey)
58
- var handler = optimizely. datafileHandler
59
- handler. endPointStringFormat = " https://cdn.optimizely.com/datafiles/%@.json "
57
+ optimizely = OptimizelyClient ( sdkKey: sdkKey, defaultLogLevel: . debug)
60
58
61
59
optimizely. start { result in
62
60
switch result {
@@ -74,8 +72,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
74
72
guard let localDatafilePath = Bundle . main. path ( forResource: datafileName, ofType: " json " ) else {
75
73
fatalError ( " Local datafile cannot be found " )
76
74
}
77
-
78
- optimizely = OptimizelyClient ( sdkKey: sdkKey)
75
+
76
+ optimizely = OptimizelyClient ( sdkKey: sdkKey, defaultLogLevel : . debug )
79
77
80
78
do {
81
79
let datafileJSON = try String ( contentsOfFile: localDatafilePath, encoding: . utf8)
@@ -98,8 +96,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
98
96
99
97
optimizely = OptimizelyClient ( sdkKey: sdkKey,
100
98
logger: customLogger,
101
- periodicDownloadInterval: customDownloadIntervalInSecs)
102
-
99
+ periodicDownloadInterval: customDownloadIntervalInSecs,
100
+ defaultLogLevel : . debug )
103
101
// notification listeners
104
102
105
103
_ = optimizely. notificationCenter. addDecisionNotificationListener ( decisionListener: { ( type, userId, attributes, decisionInfo) in
0 commit comments