Commit de56daabdbfbeb411d25994a524cb195ea8679fa
1 parent
efd4c3cf08
Exists in
master
Add more metadata on sending exception to evo-cp
Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -51,12 +51,15 @@ async function sendToModem(partner, msg, modem, parentXid, part) { |
51 | 51 | }, |
52 | 52 | }); |
53 | 53 | } catch (e) { |
54 | - logger.warn('TRANSPORT: Exception on sending message to EVO-CP', { | |
54 | + logger.warn('TRANSPORT 32E1A559: Exception on sending message to EVO-CP', { | |
55 | 55 | xid, |
56 | 56 | partner, |
57 | 57 | msgHead, |
58 | - modem: modem.name, | |
59 | - e: e.message, | |
58 | + modemName: modem.name, | |
59 | + modemUrl: modem.url, | |
60 | + httpStatus: e.response && e.response.status, | |
61 | + eCode: e.code, | |
62 | + eMessage: e.message, | |
60 | 63 | }); |
61 | 64 | } |
62 | 65 |