Skip to content

Commit 2efda6c

Browse files
committed
only log failed proxy calls
1 parent 6d2182d commit 2efda6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mods/proxy/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ function proxy_post(req, res, next) {
3737
},
3838
body: req.app.post
3939
}).then(result => {
40-
console.log({ result });
4140
if (result.ok) {
4241
res.writeHead(200, 'OK');
4342
} else {
4443
res.writeHead(500, 'Failed to proxy');
44+
console.log({ result });
4545
}
4646
res.end();
4747
});

0 commit comments

Comments
 (0)