-
Notifications
You must be signed in to change notification settings - Fork 249
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 pre login log #6285
base: develop
Are you sure you want to change the base?
feat_: add pre login log #6285
Conversation
Jenkins BuildsClick to see older builds (16)
|
61298b1
to
ce0993d
Compare
ce0993d
to
3d90b00
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6285 +/- ##
===========================================
- Coverage 61.84% 61.82% -0.02%
===========================================
Files 843 843
Lines 111287 111308 +21
===========================================
- Hits 68823 68816 -7
- Misses 34497 34517 +20
- Partials 7967 7975 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Looks fine. However, there is a failing RPC test that needs to be fixed.
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.
@qfrank, code LGTM. I'm just missing some evidence that the default ERROR level during pre-login is not leaking any private information. Could you please verify the log Error
calls are not leaking private data? If you share with me the list of Error
call sites during pre login I can also double-check (as a reviewer).
@@ -2584,6 +2587,14 @@ func (b *GethStatusBackend) Logout() error { | |||
return nil | |||
} | |||
|
|||
func (b *GethStatusBackend) switchToPreLoginLog() error { |
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.
I think it's beneficial to add a comment somewhere (could be here as a function documentation) explaining why this pre-login approach exists, otherwise the rationale will be a scattered and difficult to find in GH discussions.
Change Summary:
SetupLogSettings
to the end of the call chain (e.g.createAccountAndLogin
/loginAccount
/restoreAccountAndLogin
) to ensure that logs before a successful login are written to pre_login.logrelated: status-im/status-mobile#21501