From 410d92cd43dc377eae557bf34c4b39decedc69d0 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Tue, 13 Aug 2024 10:31:58 +0200 Subject: [PATCH] inform user before tasks that may take longer --- complassist/_licensing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/complassist/_licensing.py b/complassist/_licensing.py index d468c80..08c5abf 100644 --- a/complassist/_licensing.py +++ b/complassist/_licensing.py @@ -85,6 +85,7 @@ def _craft_single_spdx_expression(licenses: list[str]): def get_outbound_candidate(sbom_path: str, simplify: bool = True) -> dict[str, str | list[str]]: """Get license outbound candidates from an SBOM""" + logging.info("Extracting, simplifying and validating found licenses. This can take a while") licenses_in_sbom = list_all_licenses(sbom_path, use_flict=simplify) # Check whether all licenses are valid SPDX expressions @@ -98,6 +99,7 @@ def get_outbound_candidate(sbom_path: str, simplify: bool = True) -> dict[str, s logging.debug("Simplified licenses expression: %s", expression) # Get outbound candidate + logging.info("Calculating possible outbound candidates") outbound_candidate: str = flict_outbound_candidate(expression, output_format="text") return {