Skip to content

Commit

Permalink
fix: UnhandledPromiseRejectionWarning: TypeError: Converting circular…
Browse files Browse the repository at this point in the history
… structure to JSON
  • Loading branch information
paveltiunov committed Dec 31, 2019
1 parent 167f2bb commit 44c5065
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cubejs-api-gateway/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,11 @@ class ApiGateway {

log(context, event) {
const { type, ...restParams } = event;
this.logger(type, { ...restParams, ...context });
this.logger(type, {
...restParams,
authInfo: context.authInfo,
requestId: context.requestId
});
}
}

Expand Down

0 comments on commit 44c5065

Please sign in to comment.