Skip to content

Commit

Permalink
fix GOT response output
Browse files Browse the repository at this point in the history
  • Loading branch information
phifogg committed May 7, 2023
1 parent 941881f commit e6b2713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class Listener {
const fwd_url = new URL(this.forward_url);

got(fwd_url, { searchParams: json_response, method: 'GET', retry: {limit: 0} }).then(response => {
this.adapter.log.info(response.body.url);
this.adapter.log.info(response.body.explanation);
this.adapter.log.info('Forward URL: + ' + response.requestUrl);
this.adapter.log.info('Forward response body: ' + response.body);
}).catch(error => {
this.adapter.log.info(error);
});
Expand Down

0 comments on commit e6b2713

Please sign in to comment.