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
|
||||
}).then(result => {
|
||||
console.log({ result });
|
||||
if (result.ok) {
|
||||
res.writeHead(200, 'OK');
|
||||
} else {
|
||||
res.writeHead(500, 'Failed to proxy');
|
||||
console.log({ result });
|
||||
}
|
||||
res.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue