-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: add logger with userId and clientId #2139
feat: add logger with userId and clientId #2139
Conversation
* feat: add logger with userid and clientid * update lib version * added some documentation to the KaliumLogger tags * moved creating string tag to Tag sealed class * fix detekt * fix tests
…serid-and-clientid-cherry-pick
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
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.
Looking good, just small question for this cherry-pick 😄
gradle/libs.versions.toml
Outdated
@@ -39,8 +39,8 @@ jna = "5.13.0" | |||
core-crypto = "1.0.0-rc.12" | |||
core-crypto-multiplatform = "0.6.0-rc.3-multiplatform-pre1" | |||
completeKotlin = "1.1.0" | |||
desugar-jdk = "2.0.3" | |||
kermit = "1.2.2" | |||
desugar-jdk = "1.1.5" |
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.
Why downgrading one lib?
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.
IIRC, we can't downgrade to 1.x
on develop without risking some crashes during runtime.
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.
Automatic cherry-pick did that, it was supposed to just update kermit
, I didn't notice that it also changed the one above, sorry about that. Reverted.
gradle/libs.versions.toml
Outdated
@@ -39,8 +39,8 @@ jna = "5.13.0" | |||
core-crypto = "1.0.0-rc.12" | |||
core-crypto-multiplatform = "0.6.0-rc.3-multiplatform-pre1" | |||
completeKotlin = "1.1.0" | |||
desugar-jdk = "2.0.3" | |||
kermit = "1.2.2" | |||
desugar-jdk = "1.1.5" |
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.
IIRC, we can't downgrade to 1.x
on develop without risking some crashes during runtime.
…serid-and-clientid-cherry-pick
Codecov Report
@@ Coverage Diff @@
## develop #2139 +/- ##
=============================================
- Coverage 57.74% 57.73% -0.01%
+ Complexity 24 21 -3
=============================================
Files 1052 1052
Lines 40027 40057 +30
Branches 3716 3719 +3
=============================================
+ Hits 23113 23128 +15
- Misses 15305 15322 +17
+ Partials 1609 1607 -2
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Cherry pick from the original PR:
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Currently logs are not associated with specific user and client which makes debugging harder.
Solutions
Create a logger in user scope that can pass userId and clientId with each log.
Testing
Test Coverage (Optional)
How to Test
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.