Skip to content

Commit

Permalink
log request url
Browse files Browse the repository at this point in the history
  • Loading branch information
pnedelko committed Jun 6, 2023
1 parent 95dc95d commit fbdba20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/lib/actions/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function processAction(msg, cfg, snapshot, incomingMessageHeaders, tokenData) {

// Call operation via Swagger client
return Swagger.execute(callParams).then((resp) => {
const { body, headers } = resp;
this.logger.info("Swagger response %j", { body, headers });
const { url, body, headers } = resp;
this.logger.info("Swagger response %j", { url, body, headers });

const newElement = {};
newElement.metadata = getMetadata(msg.metadata);
Expand Down
4 changes: 2 additions & 2 deletions templates/lib/triggers/trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ async function processTrigger(msg, cfg, snapshot, incomingMessageHeaders, tokenD
this.logger.info("Call params %j", callParamsForLogging);

const resp = await Swagger.execute(callParams);
const { body, headers } = resp;
this.logger.info("Swagger response %j", { body, headers });
const { url, body, headers } = resp;
this.logger.info("Swagger response %j", { url, body, headers });

const newElement = {};
newElement.metadata = getMetadata(msg.metadata);
Expand Down

0 comments on commit fbdba20

Please sign in to comment.