Skip to content

Commit

Permalink
Merge pull request #15501 from mozilla/fxa-7679
Browse files Browse the repository at this point in the history
fix(logs): Fix issues with bigquery logs
  • Loading branch information
vbudhram authored Jul 5, 2023
2 parents fc6350f + 5e9f8f4 commit 4c5c702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/fxa-auth-server/scripts/prune-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ Exit Codes:
maxSessionsBatchSize
);

log.info('limitSessions result', {
result,
});
const currentDeletions = result.outputs['@totalDeletions']
log.info('limitSessions result', { currentDeletions });

// Keeping looping until all extraneous sessions been cleaned up
if (result.outputs['@totalDeletions'] <= 0) {
if (currentDeletions <= 0) {
break;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/fxa-customs-server/lib/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = (config, mc, log) => {
return result.then(
(value) => this.setAll(value),
(err) => {
log.error({ op: this[KEY] + '.refresh', err: err });
log.error({ op: this[KEY] + '.refresh', err: err.message});
throw err;
}
);
Expand Down

0 comments on commit 4c5c702

Please sign in to comment.