@@ -73,26 +73,26 @@ def _remove_stale_otel_sdk_packages():
7373 return
7474
7575 otel_logger = logging .getLogger ("charm_tracing_otel_patcher" )
76- otel_logger .debug ("Applying _remove_stale_otel_sdk_packages patch on charm upgrade" )
76+ otel_logger .info ("Applying _remove_stale_otel_sdk_packages patch on charm upgrade" )
7777 # group by name all distributions starting with "opentelemetry_"
7878 otel_distributions = defaultdict (list )
7979 for distribution in distributions ():
8080 name = distribution ._normalized_name
8181 if name .startswith ("opentelemetry_" ):
8282 otel_distributions [name ].append (distribution )
8383
84- otel_logger .debug (f"Found { len (otel_distributions )} opentelemetry distributions" )
84+ otel_logger .info (f"Found { len (otel_distributions )} opentelemetry distributions" )
8585
8686 # If we have multiple distributions with the same name, remove any that have 0 associated files
8787 for name , distributions_ in otel_distributions .items ():
8888 if len (distributions_ ) <= 1 :
8989 continue
9090
91- otel_logger .debug (f"Package { name } has multiple ({ len (distributions_ )} ) distributions." )
91+ otel_logger .info (f"Package { name } has multiple ({ len (distributions_ )} ) distributions." )
9292 for distribution in distributions_ :
9393 if not distribution .files : # Not None or empty list
9494 path = distribution ._path
9595 otel_logger .info (f"Removing empty distribution of { name } at { path } ." )
9696 shutil .rmtree (path )
9797
98- otel_logger .debug ("Successfully applied _remove_stale_otel_sdk_packages patch." )
98+ otel_logger .info ("Successfully applied _remove_stale_otel_sdk_packages patch." )
0 commit comments