Log gateway response data.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user