From 44c506567813809a271a2b018ebdf5e7a398647a Mon Sep 17 00:00:00 2001 From: Pavel Tiunov Date: Tue, 31 Dec 2019 11:24:14 +0300 Subject: [PATCH] fix: UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON --- packages/cubejs-api-gateway/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/cubejs-api-gateway/index.js b/packages/cubejs-api-gateway/index.js index 9e97a639c7917..8ebfda863467f 100644 --- a/packages/cubejs-api-gateway/index.js +++ b/packages/cubejs-api-gateway/index.js @@ -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 + }); } }