Automattic / Automattic-Tracks-iOS

Client library for tracking user events for later analysis
GNU General Public License v2.0
40 stars 12 forks source link

`TracksLogWarn` messages aren't shown in console in the client app #262

Closed jaclync closed 10 months ago

jaclync commented 11 months ago

Recently, we noticed a Tracks event wasn't actually tracked due to a validation error that wasn't logged anywhere in the console p1693362956666449/1692625489.705669-slack-C039133E1M3.

https://github.com/Automattic/Automattic-Tracks-iOS/blob/aad902bf945e7528a00ba5b9c5640974d58ff2fd/Sources/Event%20Logging/TracksEventService.m#L59-L61

Upon inspection, TracksLoggingClass() is nil:

https://github.com/Automattic/Automattic-Tracks-iOS/blob/aad902bf945e7528a00ba5b9c5640974d58ff2fd/Sources/Model/ObjC/Common/TracksLogging.m#L6-L18

It'd be great to fix this so that we can detect any validation errors during development.