Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
fix: log outbound http messages
Browse files Browse the repository at this point in the history
fixes #50
  • Loading branch information
jonfreedman committed Apr 30, 2017
1 parent 7dd2aa7 commit d79e436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/symphony.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ class Symphony {
if (body !== undefined && body !== null) {
options.body = body;
}
logger.debug(`sending ${options.method} to https://${host}${path}: ${JSON.stringify(options.body)}`);
request(options, (err, res: HttpResponseType, data: T) => {
if (err !== undefined && err !== null) {
const statusCode = res ? res.statusCode : 'unknown';
Expand Down

0 comments on commit d79e436

Please sign in to comment.