Skip to content
Snippets Groups Projects
Unverified Commit 4d0f99a7 authored by Michael Kriese's avatar Michael Kriese Committed by GitHub
Browse files

fix(nuget): fix error logging (#7460)

parent cc9d256c
Branches
Tags 23.47.6
No related merge requests found
......@@ -24,8 +24,8 @@ function parseRegistryUrl(
protocolVersion = 3;
}
return { feedUrl: urlApi.format(parsedUrl), protocolVersion };
} catch (e) {
logger.debug({ e }, `nuget registry failure: can't parse ${registryUrl}`);
} catch (err) {
logger.debug({ err }, `nuget registry failure: can't parse ${registryUrl}`);
return { feedUrl: registryUrl, protocolVersion: null };
}
}
......
......@@ -79,9 +79,9 @@ export async function getResourceUrl(
await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60);
return serviceId;
} catch (e) {
} catch (err) {
logger.debug(
{ e },
{ err },
`nuget registry failure: can't get ${resourceType} form ${url}`
);
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment