Skip to content

Commit 23144de

Browse files
authored
Change log level to info to get more data (#550)
1 parent 69654f0 commit 23144de

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/LPCTNotificationsManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import Foundation
5858

5959
func handleCleverTapNotification(userInfo: [AnyHashable : Any], event: NotificationEvent) {
6060
handleWithCleverTapInstance {
61-
Log.debug("""
61+
Log.info("""
6262
[Wrapper] Calling CleverTap.handlePushNotification:openDeepLinksInForeground: \
6363
\(Constants.OpenDeepLinksInForeground) for Push \(event)
6464
""")

LeanplumSDK/LeanplumSDK/ClassesSwift/Migration/Wrapper/CTWrapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CTWrapper: Wrapper {
4141
userId: String,
4242
deviceId: String,
4343
callbacks: [CleverTapInstanceCallback]) {
44-
Log.debug("[Wrapper] Wrapper Instantiated")
44+
Log.info("[Wrapper] Wrapper Instantiated")
4545
self.accountId = accountId
4646
self.accountToken = accountToken
4747
self.accountRegion = accountRegion

LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/NotificationsManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ import UIKit
9191
Log.debug("Push notification not handled, no message id found.")
9292
return
9393
}
94-
Log.debug("Notification Opened MessageId: \(messageId)")
94+
Log.info("Notification Opened MessageId: \(messageId)")
9595

9696
let isDefaultAction = action == LP_VALUE_DEFAULT_PUSH_ACTION
9797

@@ -128,7 +128,7 @@ import UIKit
128128
// MARK: Notification Received
129129
func notificationReceived(userInfo: [AnyHashable: Any], isForeground: Bool) {
130130
guard let messageId = Utilities.messageIdFromUserInfo(userInfo) else { return }
131-
Log.debug("Notification received - \(isForeground ? "Foreground" : "Background"). MessageId: \(messageId)")
131+
Log.info("Notification received - \(isForeground ? "Foreground" : "Background"). MessageId: \(messageId)")
132132

133133
trackDelivery(userInfo: userInfo)
134134
if isForeground {

LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/Proxy/NotificationsProxy+Swizzling.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ extension NotificationsProxy {
120120
}
121121

122122
if conforms, let notifDelegate = applicationDelegate as? UNUserNotificationCenterDelegate {
123-
Log.debug("Setting \(userNotificationDelegateName).")
123+
Log.info("Setting \(userNotificationDelegateName).")
124124
UNUserNotificationCenter.current().delegate = notifDelegate
125125
swizzleUserNotificationDidReceiveNotificationResponseWithCompletionHandler()
126126
swizzleUserNotificationWillPresentNotificationWithCompletionHandler()
127127
} else {
128-
Log.debug("Failed to set \(userNotificationDelegateName).")
128+
Log.error("Failed to set \(userNotificationDelegateName).")
129129
}
130130
}
131131
}

LeanplumSDK/LeanplumSDK/ClassesSwift/Notifications/Proxy/NotificationsProxy.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public class NotificationsProxy: NSObject {
6767

6868
func applicationLaunched(launchOptions: [AnyHashable: Any]) {
6969
if let remoteNotification = launchOptions[UIApplication.LaunchOptionsKey.remoteNotification] as? [AnyHashable: Any] {
70+
Log.info("Application Launched with notification: \(remoteNotification)")
7071
notificationHandledFromStart = remoteNotification
7172

7273
// started in background, woken up by remote notification

0 commit comments

Comments
 (0)