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
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ function parseRegistryUrl( ...@@ -24,8 +24,8 @@ function parseRegistryUrl(
protocolVersion = 3; protocolVersion = 3;
} }
return { feedUrl: urlApi.format(parsedUrl), protocolVersion }; return { feedUrl: urlApi.format(parsedUrl), protocolVersion };
} catch (e) { } catch (err) {
logger.debug({ e }, `nuget registry failure: can't parse ${registryUrl}`); logger.debug({ err }, `nuget registry failure: can't parse ${registryUrl}`);
return { feedUrl: registryUrl, protocolVersion: null }; return { feedUrl: registryUrl, protocolVersion: null };
} }
} }
......
...@@ -79,9 +79,9 @@ export async function getResourceUrl( ...@@ -79,9 +79,9 @@ export async function getResourceUrl(
await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60); await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60);
return serviceId; return serviceId;
} catch (e) { } catch (err) {
logger.debug( logger.debug(
{ e }, { err },
`nuget registry failure: can't get ${resourceType} form ${url}` `nuget registry failure: can't get ${resourceType} form ${url}`
); );
return null; return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment