Skip to content

Commit 26f219b

Browse files
authored
Merge pull request #142 from ligangty/main
Chore: put down some log level
2 parents 39a2257 + de17261 commit 26f219b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

charon/cmd/command.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def upload(
140140

141141
aws_profile = os.getenv("AWS_PROFILE") or conf.get_aws_profile()
142142
if not aws_profile:
143-
logger.warning("No AWS profile specified!")
143+
logger.error("No AWS profile specified!")
144+
sys.exit(1)
144145

145146
archive_path = __get_local_repo(repo)
146147
npm_archive_type = detect_npm_archive(archive_path)
@@ -295,7 +296,8 @@ def delete(
295296

296297
aws_profile = os.getenv("AWS_PROFILE") or conf.get_aws_profile()
297298
if not aws_profile:
298-
logger.warning("No AWS profile specified!")
299+
logger.error("No AWS profile specified!")
300+
sys.exit(1)
299301

300302
archive_path = __get_local_repo(repo)
301303
npm_archive_type = detect_npm_archive(archive_path)

charon/pkgs/maven.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ def __hash_decorate_metadata(path: str, metadata: str) -> List[str]:
994994
def _is_ignored(filename: str, ignore_patterns: List[str]) -> bool:
995995
for ignored_name in STANDARD_GENERATED_IGNORES:
996996
if ignored_name in filename:
997-
logger.warning("Ignoring standard generated Maven path: %s", filename)
997+
logger.info("Ignoring standard generated Maven path: %s", filename)
998998
return True
999999

10001000
if ignore_patterns:

charon/storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ def __get_prod_info(
678678
logger.debug("Got product information as below %s", prods)
679679
return (prods, True)
680680
except (ClientError, HTTPClientError) as e:
681-
logger.error("ERROR: Can not get product info for file %s "
682-
"due to error: %s", file, e)
681+
logger.warning("WARN: Can not get product info for file %s "
682+
"due to error: %s", file, e)
683683
return ([], False)
684684

685685
async def __update_prod_info(

0 commit comments

Comments
 (0)