mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge pull request #389 from AikidoSec/feat/noisy-log
This commit is contained in:
commit
3f47ae890c
1 changed files with 4 additions and 6 deletions
|
|
@ -209,7 +209,7 @@ export function getMalwareListBaseUrl() {
|
||||||
const cliValue = cliArguments.getMalwareListBaseUrl();
|
const cliValue = cliArguments.getMalwareListBaseUrl();
|
||||||
if (cliValue) {
|
if (cliValue) {
|
||||||
const url = removeTrailingSlashes(cliValue);
|
const url = removeTrailingSlashes(cliValue);
|
||||||
ui.writeInformation(`Fetching malware lists from ${url} as defined by CLI argument --safe-chain-malware-list-base-url`);
|
ui.writeVerbose(`Fetching malware lists from ${url} as defined by CLI argument --safe-chain-malware-list-base-url`);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -217,7 +217,7 @@ export function getMalwareListBaseUrl() {
|
||||||
const envValue = environmentVariables.getMalwareListBaseUrl();
|
const envValue = environmentVariables.getMalwareListBaseUrl();
|
||||||
if (envValue) {
|
if (envValue) {
|
||||||
const url = removeTrailingSlashes(envValue);
|
const url = removeTrailingSlashes(envValue);
|
||||||
ui.writeInformation(`Fetching malware lists from ${url} as defined by environment variable SAFE_CHAIN_MALWARE_LIST_BASE_URL`);
|
ui.writeVerbose(`Fetching malware lists from ${url} as defined by environment variable SAFE_CHAIN_MALWARE_LIST_BASE_URL`);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -225,14 +225,12 @@ export function getMalwareListBaseUrl() {
|
||||||
const configValue = configFile.getMalwareListBaseUrl();
|
const configValue = configFile.getMalwareListBaseUrl();
|
||||||
if (configValue) {
|
if (configValue) {
|
||||||
const url = removeTrailingSlashes(configValue);
|
const url = removeTrailingSlashes(configValue);
|
||||||
ui.writeInformation(`Fetching malware lists from ${url} as defined by config file (malwareListBaseUrl)`);
|
ui.writeVerbose(`Fetching malware lists from ${url} as defined by config file (malwareListBaseUrl)`);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default
|
// Default
|
||||||
const url = removeTrailingSlashes("https://malware-list.aikido.dev");
|
return removeTrailingSlashes("https://malware-list.aikido.dev");
|
||||||
ui.writeInformation(`Fetching malware lists from ${url} (default)`);
|
|
||||||
return url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue