only log failed proxy calls

This commit is contained in:
Stewart Allen 2026-03-01 23:13:45 -05:00
commit 2efda6cf43

View file

@ -37,11 +37,11 @@ function proxy_post(req, res, next) {
},
body: req.app.post
}).then(result => {
console.log({ result });
if (result.ok) {
res.writeHead(200, 'OK');
} else {
res.writeHead(500, 'Failed to proxy');
console.log({ result });
}
res.end();
});