url error log
This commit is contained in:
1 parent
328875d0f5
commit
ba21ae60d7
2 files changed
+15
-2
No files matched your search
@@ -57,7 +57,14 @@ export default async function genericProxyHandler(req, res, map) {
|
||||
}
|
||||
|
||||
if (status >= 400) {
|
||||
logger.debug("HTTP Error %d calling %s//%s%s%s...", status, url.protocol, url.hostname, url.port, url.pathname);
|
||||
logger.debug(
|
||||
"HTTP Error %d calling %s//%s:%s%s...",
|
||||
status,
|
||||
url.protocol,
|
||||
url.hostname,
|
||||
url.port,
|
||||
url.pathname
|
||||
);
|
||||
return res.status(status).json({error: {message: "HTTP Error", url: sanitizeErrorURL(url), resultData}});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user