From d79e4360e94f2c8336c38479d21d43ede0c20e36 Mon Sep 17 00:00:00 2001 From: jonfreedman Date: Sun, 30 Apr 2017 10:24:28 +0100 Subject: [PATCH] fix: log outbound http messages fixes #50 --- src/symphony.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/symphony.js b/src/symphony.js index 4880bc5..9fefe9d 100644 --- a/src/symphony.js +++ b/src/symphony.js @@ -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';