only log failed proxy calls
This commit is contained in:
parent
6d2182d2d4
commit
2efda6cf43
1 changed files with 1 additions and 1 deletions
|
|
@ -37,11 +37,11 @@ function proxy_post(req, res, next) {
|
||||||
},
|
},
|
||||||
body: req.app.post
|
body: req.app.post
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
console.log({ result });
|
|
||||||
if (result.ok) {
|
if (result.ok) {
|
||||||
res.writeHead(200, 'OK');
|
res.writeHead(200, 'OK');
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(500, 'Failed to proxy');
|
res.writeHead(500, 'Failed to proxy');
|
||||||
|
console.log({ result });
|
||||||
}
|
}
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue