@@ -343,8 +343,20 @@ class Arazzo extends Document {
343343
344344 let response ;
345345 if ( this . operation ?. mutualTLS ) {
346+ this . logger . verbose ( "Using mutualTLS call" ) ;
346347 response = await this . mutualTLS ( ) ;
347348 } else {
349+ this . logger . verbose ( "Using fetch call" ) ;
350+
351+ this . logger . verbose ( `url: ${ url } ` ) ;
352+ this . logger . verbose ( `method: ${ options . method } ` ) ;
353+ this . logger . verbose ( "headers:" ) ;
354+ for ( const [ key , value ] of options . headers . entries ( ) ) {
355+ this . logger . verbose ( `${ key } : ${ value } ` ) ;
356+ }
357+
358+ this . logger . verbose ( `body: ${ options . body } ` ) ;
359+
348360 response = await fetch ( url , options ) ;
349361 }
350362
@@ -367,6 +379,7 @@ class Arazzo extends Document {
367379 let clientKeyPath ;
368380 try {
369381 clientKeyPath = path . resolve ( this . inputs . key ) ;
382+ this . logger . verbose ( `clientKey Path: ${ clientKeyPath } ` ) ;
370383 } catch ( err ) {
371384 this . logger . error ( `could not resolve clientKey` ) ;
372385 throw err ;
@@ -375,6 +388,7 @@ class Arazzo extends Document {
375388 let clientCertPath ;
376389 try {
377390 clientCertPath = path . resolve ( this . inputs . cert ) ;
391+ this . logger . verbose ( `clientCert Path: ${ clientCertPath } ` ) ;
378392 } catch ( err ) {
379393 this . logger . error ( `could not resolve clientCert` ) ;
380394 throw err ;
@@ -388,11 +402,17 @@ class Arazzo extends Document {
388402
389403 const opUrl = new URL ( url ) ;
390404
405+ this . logger . verbose ( `url: ${ opUrl . pathname + opUrl . search } ` ) ;
406+ this . logger . verbose ( `method: ${ this . operation . method } ` ) ;
407+ this . logger . verbose ( "headers:" ) ;
391408 const headersObj = { } ;
392409 for ( const [ key , value ] of this . operation . headers . entries ( ) ) {
410+ this . logger . verbose ( `${ key } : ${ value } ` ) ;
393411 Object . assign ( headersObj , { [ key ] : value } ) ;
394412 }
395413
414+ this . logger . verbose ( `body: ${ this . operation . data } ` ) ;
415+
396416 return new Promise ( ( resolve , reject ) => {
397417 const options = {
398418 key : fs . readFileSync ( clientKeyPath ) ,
0 commit comments