From 6acfcd141b9046cdce833d9fd181db9db6ce30f3 Mon Sep 17 00:00:00 2001 From: Johannes Nussbaum Date: Thu, 18 Jul 2024 11:08:58 +0200 Subject: [PATCH] add logging to _group_oaps_together() --- dsp_permissions_scripts/oap/oap_serialize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dsp_permissions_scripts/oap/oap_serialize.py b/dsp_permissions_scripts/oap/oap_serialize.py index 0440f174..a0a139fd 100644 --- a/dsp_permissions_scripts/oap/oap_serialize.py +++ b/dsp_permissions_scripts/oap/oap_serialize.py @@ -90,4 +90,5 @@ def _group_oaps_together(res_oaps: list[ResourceOap], val_oaps: list[ValueOap]) oaps.append(Oap(resource_oap=res_oap, value_oaps=[])) oaps.sort(key=lambda oap: oap.resource_oap.resource_iri if oap.resource_oap else "") + logger.info(f"Grouped {len(res_oaps)} resource OAPs and {len(val_oaps)} value OAPs into {len(oaps)} OAPs") return oaps