From 90ceecd00d2e623f3d8a0aef13aa5a23e496d057 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 23 Apr 2020 13:22:55 +0200 Subject: [PATCH] fix(AWS HTTP API): Fix default log format Fixes #7559 --- lib/plugins/aws/package/compile/events/httpApi/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/aws/package/compile/events/httpApi/index.js b/lib/plugins/aws/package/compile/events/httpApi/index.js index bced48716..bfe8f8782 100644 --- a/lib/plugins/aws/package/compile/events/httpApi/index.js +++ b/lib/plugins/aws/package/compile/events/httpApi/index.js @@ -237,7 +237,7 @@ Object.defineProperties( } this.config.accessLogFormat = userLogsConfig.format || - `{${JSON.stringify({ + `${JSON.stringify({ requestId: '$context.requestId', ip: '$context.identity.sourceIp', requestTime: '$context.requestTime', @@ -246,7 +246,7 @@ Object.defineProperties( status: '$context.status', protocol: '$context.protocol', responseLength: '$context.responseLength', - })}}`; + })}`; } if (userConfig.timeout) {