-
Notifications
You must be signed in to change notification settings - Fork 879
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
Disable logs #6439
Disable logs #6439
Conversation
6da03a3
to
0826821
Compare
vendor/bat-native-ledger/src/bat/ledger/internal/state/state_migration_v4.cc
Show resolved
Hide resolved
vendor/bat-native-ledger/src/bat/ledger/internal/state/state_migration_v4.h
Outdated
Show resolved
Hide resolved
vendor/bat-native-ledger/src/bat/ledger/internal/state/state_migration_v4.h
Outdated
Show resolved
Hide resolved
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.
Please see inline comments
vendor/bat-native-ledger/src/bat/ledger/internal/state/state_migration_v4.cc
Outdated
Show resolved
Hide resolved
@@ -2323,7 +2323,7 @@ void RewardsServiceImpl::DiagnosticLog( | |||
const int line, | |||
const int verbose_level, | |||
const std::string& message) { | |||
if (ledger_for_testing_) { | |||
if (ledger_for_testing_ || !should_persist_logs_) { |
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.
nit: !should_persist_logs_
within a separate if as conditions are not related
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.
LGTM++
Resolves brave/brave-browser#11260
0826821
to
db71ef7
Compare
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.
iOS currently doesn't need to implement this, but when it does, are we talking deleting all logs? Is this like a clear-all?
@kylehickinson just removing |
Gotcha, which is where all logs are stored on desktop I presume? When we have persisted logs enabled, we have multiple logs files per day. So this would essentially delete all persisted rewards logs |
@kylehickinson yeah on desktop we only have one file. and if that is the case on iOS yes you need to delete all of them |
Verification PASSED on
Using the STR/Cases outlined via #6439 (comment), went through the following:
|
@kylehickinson do we need a separate issue for iOS? |
@kjozwiak no, iOS never wrote rewards logs to disk in any live version so we should be OK. Rewards Internals for iOS also removed logs before it merged. May just want to make a note on the Rewards Internals issue |
@NejcZdovc can you please add steps for Android. Issue is marked to verify on Android as well |
@srirambv because you can't check if file is there or not I would just make sure if you go to internals page and click download that nothing happens/file is blank |
Resolves brave/brave-browser#11260
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
plan 1:
plan 2:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.