-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventsSDK: Add debug mode #130
Conversation
Coverage check is failing, but I think that may be okay for this commit. The coverage is still > 80%, and there is not really unit tests to write for the additions made in this PR. We could test what is expected to will print out in the logs, but I think that may be overkill. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
Add a
debug
flag to AnalyticsConfig. When set to true events will not be sent to the Events API and additional information will be logged to console. The added logs are:J=FUS-6239
R=abenno, mtian
TEST=manual
Enabled the debug mode in the test site. See screenshots below for logging examples.
![Screenshot 2024-02-13 at 2 17 50 PM](https://private-user-images.githubusercontent.com/18221975/304527385-edb6be28-5a20-4ad5-a8b1-9f6699e3931a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MjgzODAsIm5iZiI6MTczODkyODA4MCwicGF0aCI6Ii8xODIyMTk3NS8zMDQ1MjczODUtZWRiNmJlMjgtNWEyMC00YWQ1LWE4YjEtOWY2Njk5ZTM5MzFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDExMzQ0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmOTI1OGNiOGFiZmU4Y2IyZTU3MjNjNDAzMTI2ZWFjZGJkZThhZGJiNDUzM2Y3ZDlhNDFlZDgzMWNhNTE5NzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kvBabjeO08I_tE8KDc_3ti6NLPHkXF5uVC76OVEAqGk)
![Screenshot 2024-02-13 at 2 20 52 PM](https://private-user-images.githubusercontent.com/18221975/304527389-eac14b3e-0a70-4ef5-b620-c0fc023d1256.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MjgzODAsIm5iZiI6MTczODkyODA4MCwicGF0aCI6Ii8xODIyMTk3NS8zMDQ1MjczODktZWFjMTRiM2UtMGE3MC00ZWY1LWI2MjAtYzBmYzAyM2QxMjU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDExMzQ0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzMDk0ZmVlNzhhOGNiMWI3NDM4N2Q0Y2U4MWIyZGRkZWViMTZkYmIwMDJiZThiMTYxZjMzMDZjNmE4Y2QxMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qY25s87P1aYPQ6rr3Z5gQWcbpbtY9mLubTsEE9R-4xQ)