Skip to content

Commit

Permalink
Remove arbitrary data from rewards error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zenparsing committed Apr 26, 2021
1 parent 2b5b7b4 commit c0b0e2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ void AdRewards::OnGetPayments(const UrlResponse& url_response) {
}

if (!payments_->SetFromJson(url_response.body)) {
BLOG(0, "Failed to parse payment balance: " << url_response.body);
BLOG(0, "Failed to parse payment balance");
BLOG(1, "Payment balance response body: " << url_response.body);
OnFailedToReconcileAdRewards();
return;
}
Expand Down Expand Up @@ -324,7 +325,8 @@ void AdRewards::OnGetAdGrants(const UrlResponse& url_response) {
}

if (!ad_grants_->SetFromJson(url_response.body)) {
BLOG(0, "Failed to parse ad grants: " << url_response.body);
BLOG(0, "Failed to parse ad grants");
BLOG(1, "Ad grants response body: " << url_response.body);
OnFailedToReconcileAdRewards();
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ void LegacyBatState::OnLoad(
ledger::ClientProperties state;
const ledger::ClientState client_state;
if (!client_state.FromJson(data, &state)) {
BLOG(0, "Failed to load client state: " << data);
BLOG(0, "Failed to load client state");
BLOG(1, "Client state contents: " << data);
callback(ledger::type::Result::LEDGER_ERROR);
return;
}
Expand Down

0 comments on commit c0b0e2e

Please sign in to comment.