Skip to content

Commit 1926785

Browse files
committed
improve logging
1 parent 4b0a7f6 commit 1926785

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Code/Conviva/Source/Base/Events/ConvivaHandlers/PlayerHandler.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,14 @@ class PlayerHandler {
206206
default:
207207
self.unreportedEncodingType = nil
208208
}
209-
log("self.unreportedEncodingType updated to \(self.unreportedEncodingType ?? "nil")")
210209

211210
if self.encodingTypeIsPending,
212211
let encodingType = self.storage?.metadataEntryForKey(ENCODING_TYPE) as? String ?? self.unreportedEncodingType {
213212
// report the pending encodingType and reset the pending state
214213
self.setContentInfo([ENCODING_TYPE:encodingType])
215214
self.unreportedEncodingType = nil
216215
self.encodingTypeIsPending = false
217-
log("unreportedEncodingType was reset to nil after processing pending encodingtype")
216+
log("unreportedEncodingType reset after processing pending encodingtype")
218217
}
219218
}
220219

@@ -263,10 +262,10 @@ class PlayerHandler {
263262

264263
// Do not override `encoding_type` value if already set by the customer.
265264
if let encodingType = self.storage?.metadataEntryForKey(ENCODING_TYPE) as? String ?? self.unreportedEncodingType {
266-
log("processing encodingType based on unreportedEncodingType \(self.unreportedEncodingType ?? "nil")")
265+
log("reporting encodingType \(self.unreportedEncodingType ?? "nil")")
267266
metadata[ENCODING_TYPE] = encodingType
268267
self.unreportedEncodingType = nil
269-
log("reset unreportedEncodingType to nil after processing it")
268+
log("unreportedEncodingType reset")
270269
} else {
271270
self.encodingTypeIsPending = true
272271
log("mark encodingType as pending")

0 commit comments

Comments
 (0)