From 3c9bebd33d6c902112670c349a9183db18f1b9ab Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Thu, 27 Aug 2020 19:05:01 -0400 Subject: [PATCH] refactor debug logging message --- stix2/equivalence/graph_equivalence/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stix2/equivalence/graph_equivalence/__init__.py b/stix2/equivalence/graph_equivalence/__init__.py index 02d2ebf6..225d2274 100644 --- a/stix2/equivalence/graph_equivalence/__init__.py +++ b/stix2/equivalence/graph_equivalence/__init__.py @@ -80,7 +80,12 @@ def graphically_equivalent(ds1, ds2, prop_scores={}, **weight_dict): prop_scores["matching_score"] = matching_score prop_scores["sum_weights"] = sum_weights - logger.debug(f"DONE\nSUM_WEIGHT: {sum_weights:.2f}\tMATCHING_SCORE: {matching_score:.2f}\t SCORE: {equivalence_score:.2f}") + logger.debug( + "DONE\nSUM_WEIGHT: %.2f\tMATCHING_SCORE: %.2f\t SCORE: %.2f", + sum_weights, + matching_score, + equivalence_score, + ) return equivalence_score