mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(nuget): log registry url (#7583)
This commit is contained in:
parent
55ca3ecaa3
commit
90f914b57c
1 changed files with 6 additions and 3 deletions
|
@ -74,15 +74,18 @@ export async function getResourceUrl(
|
||||||
resourceType === 'RegistrationsBaseUrl' &&
|
resourceType === 'RegistrationsBaseUrl' &&
|
||||||
!semver.satisfies(version, '^3.0.0')
|
!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);
|
await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60);
|
||||||
return serviceId;
|
return serviceId;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
{ err },
|
{ err, url },
|
||||||
`nuget registry failure: can't get ${resourceType} form ${url}`
|
`nuget registry failure: can't get ${resourceType}`
|
||||||
);
|
);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue