mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-03-02 19:03:20 +00:00
chore: improve error logging
This commit is contained in:
@@ -49,6 +49,8 @@ function printError(error: any, req?: express.Request) {
|
||||
.trim()}`;
|
||||
if (req) {
|
||||
message += ` ${req.originalUrl}`;
|
||||
// ignore common error
|
||||
if (req.originalUrl === '/api/repo/undefined/options') return
|
||||
}
|
||||
console.error(message);
|
||||
} else if (error instanceof Error) {
|
||||
|
||||
Reference in New Issue
Block a user