mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Merge pull request #3516 from github/mbg/start-proxy/reduce-connection-check-severity
This commit is contained in:
6
lib/start-proxy-action.js
generated
6
lib/start-proxy-action.js
generated
@@ -122104,9 +122104,9 @@ async function checkConnections(logger, proxy, backend) {
|
||||
result.add(registry);
|
||||
} catch (e) {
|
||||
if (e instanceof ReachabilityError && e.statusCode !== void 0) {
|
||||
logger.error(`Connection test to ${url} failed. (${e.statusCode})`);
|
||||
logger.info(`Connection test to ${url} failed. (${e.statusCode})`);
|
||||
} else {
|
||||
logger.error(
|
||||
logger.warning(
|
||||
`Connection test to ${url} failed: ${getErrorMessage(e)}`
|
||||
);
|
||||
}
|
||||
@@ -122114,7 +122114,7 @@ async function checkConnections(logger, proxy, backend) {
|
||||
}
|
||||
logger.debug(`Finished testing connections to private registries.`);
|
||||
} catch (e) {
|
||||
logger.error(
|
||||
logger.warning(
|
||||
`Failed to test connections to private registries: ${getErrorMessage(e)}`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -110,9 +110,9 @@ export async function checkConnections(
|
||||
result.add(registry);
|
||||
} catch (e) {
|
||||
if (e instanceof ReachabilityError && e.statusCode !== undefined) {
|
||||
logger.error(`Connection test to ${url} failed. (${e.statusCode})`);
|
||||
logger.info(`Connection test to ${url} failed. (${e.statusCode})`);
|
||||
} else {
|
||||
logger.error(
|
||||
logger.warning(
|
||||
`Connection test to ${url} failed: ${getErrorMessage(e)}`,
|
||||
);
|
||||
}
|
||||
@@ -121,7 +121,7 @@ export async function checkConnections(
|
||||
|
||||
logger.debug(`Finished testing connections to private registries.`);
|
||||
} catch (e) {
|
||||
logger.error(
|
||||
logger.warning(
|
||||
`Failed to test connections to private registries: ${getErrorMessage(e)}`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user