Include port in error messages

This commit is contained in:
shamoon
2023-05-14 21:24:09 -07:00
parent ef1dfc7323
commit bc981aae3d
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ export default async function genericProxyHandler(req, res, map) {
}
if (status >= 400) {
logger.debug("HTTP Error %d calling %s//%s%s...", status, url.protocol, url.hostname, 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}});
}