0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 19:32:42 +00:00

Remove API error message from log

This commit is contained in:
G.Ambatte
2023-10-29 11:43:24 +13:00
parent e07d1d1ddb
commit 7052337669

View File

@@ -491,7 +491,7 @@ app.use(async (err, req, res, next)=>{
req.customUrl= '/error';
if(req.originalUrl.startsWith('/api/')) {
console.log('api error');
// console.log('api error');
res.status(err?.status || err?.response?.status || 500).send(err.message || err);
return;
}