This commit is contained in:
Christopher Cookman 2026-05-09 10:38:21 -06:00
parent 0752221b85
commit 1a49ebbc08

View file

@ -570,6 +570,7 @@ xmpp.on("stanza", (stanza) => {
}
})
});
if (process.env.LOG_EVENTS === "true") {
fs.writeFileSync(logPath, JSON.stringify({
evt, stanza, product_id, product_id_raw, bodyData, body, sentData: {
"type": "iem-message",
@ -590,6 +591,7 @@ xmpp.on("stanza", (stanza) => {
}
}, getCircularReplacer(), 2), 'utf8');
}
}
tryGetText();
}
});