fix(nuget): log registry url (#7583)

This commit is contained in:
Michael Kriese 2020-10-28 10:53:59 +01:00 committed by GitHub
parent 55ca3ecaa3
commit 90f914b57c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,15 +74,18 @@ export async function getResourceUrl(
resourceType === 'RegistrationsBaseUrl' &&
!semver.satisfies(version, '^3.0.0')
) {
logger.warn(`Nuget: RegistrationsBaseUrl/${version} is the major update`);
logger.warn(
{ url },
`Nuget: RegistrationsBaseUrl/${version} is the major update`
);
}
await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60);
return serviceId;
} catch (err) {
logger.debug(
{ err },
`nuget registry failure: can't get ${resourceType} form ${url}`
{ err, url },
`nuget registry failure: can't get ${resourceType}`
);
return null;
}