From d0b271da07b3ca70fca4d177b992b2e0d700b0ad Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <adhisimon@gmail.com>
Date: Thu, 17 Feb 2022 15:07:53 +0700
Subject: [PATCH] Add response body log on exception on sending to evo-cp

---
 lib/transport.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/transport.js b/lib/transport.js
index 1a11171..1584b7d 100644
--- a/lib/transport.js
+++ b/lib/transport.js
@@ -60,6 +60,7 @@ async function sendToModem(partner, msg, modem, parentXid, part) {
             httpStatus: e.response && e.response.status,
             eCode: e.code,
             eMessage: e.message,
+            responseBody: e.response && e.response.data,
         });
     }
 
-- 
1.9.0