mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-23 17:49:40 +02:00
improve logs
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ router.get("/:repoId/stats", async (req, res) => {
|
|||||||
const stats = await fileUtils.getStats({ repoConfig });
|
const stats = await fileUtils.getStats({ repoConfig });
|
||||||
return res.json(stats.languages);
|
return res.json(stats.languages);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(req.params.repoId, req.params.path, error);
|
console.error(req.params.repoId, error);
|
||||||
return res.status(500).json({ error });
|
return res.status(500).json({ error });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user