Log gateway response data.

This commit is contained in:
2020-10-11 22:19:25 +02:00
committed by KevinMidboe
parent 439191008a
commit b3b5e87ab5

View File

@@ -82,7 +82,11 @@ async function gatewayRequest(body) {
res.setEncoding('utf8');
if (res.statusCode == 200) {
res.on("data", (d) => resolve(JSON.parse(d)));
res.on("data", (data) => {
console.log("Response from message gateway:", data)
resolve(JSON.parse(data))
});
} else {
res.on("data", (data) => {
data = JSON.parse(data);