mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 22:22:41 +00:00
Remove API error message from log
This commit is contained in:
@@ -491,7 +491,7 @@ app.use(async (err, req, res, next)=>{
|
|||||||
req.customUrl= '/error';
|
req.customUrl= '/error';
|
||||||
|
|
||||||
if(req.originalUrl.startsWith('/api/')) {
|
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);
|
res.status(err?.status || err?.response?.status || 500).send(err.message || err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user