@@ -29,7 +29,6 @@ import {
29
29
ListSourceRepositoriesItems ,
30
30
} from 'aws-sdk/clients/codecatalyst'
31
31
32
- // REMOVE ME SOON: only used for development
33
32
interface CodeCatalystConfig {
34
33
readonly region : string
35
34
readonly endpoint : string
@@ -237,19 +236,16 @@ class CodeCatalystClientInternal {
237
236
const logHeaders = { }
238
237
// Selected headers which are useful for logging.
239
238
const logHeaderNames = [
240
- // 'access-control-expose-headers',
241
- // 'cache-control',
242
- // 'strict-transport-security',
243
- 'x-amz-apigw-id' ,
244
- 'x-amz-cf-id' ,
245
- 'x-amz-cf-pop' ,
246
- 'x-amzn-remapped-content-length' ,
247
- 'x-amzn-remapped-x-amzn-requestid' ,
248
239
'x-amzn-requestid' ,
249
- 'x-amzn-served-from' ,
250
240
'x-amzn-trace-id' ,
241
+ 'x-amzn-served-from' ,
251
242
'x-cache' ,
252
- 'x-request-id' , // <- Request id for caws/fusi!
243
+ 'x-amz-cf-id' ,
244
+ 'x-amz-cf-pop' ,
245
+ // 'access-control-expose-headers',
246
+ // 'cache-control',
247
+ // 'strict-transport-security',
248
+ // 'x-amz-apigw-id',
253
249
]
254
250
if ( allHeaders && Object . keys ( allHeaders ) . length > 0 ) {
255
251
for ( const k of logHeaderNames ) {
@@ -260,10 +256,7 @@ class CodeCatalystClientInternal {
260
256
// Stack is noisy and useless in production.
261
257
const errNoStack = { ...e }
262
258
delete errNoStack . stack
263
- // Remove confusing "requestId" field (= "x-amzn-requestid" header)
264
- // because for caws/fusi, "x-request-id" is more relevant.
265
- // All of the various request-ids can be found in the logged headers.
266
- delete errNoStack . requestId
259
+ delete errNoStack . requestId // redundant (= "x-amzn-requestid" header).
267
260
268
261
if ( r . operation || r . params ) {
269
262
log . error (
0 commit comments