Skip to content

Commit 630036b

Browse files
committed
improved logging
1 parent b2d9668 commit 630036b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package_xml_validation/package_xml_validator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ def check_and_format_files(self, package_xml_files):
404404
"""Check and format package.xml files if self.check_only is False.
405405
Returns is_valid, changed_xml
406406
"""
407-
408407
self.all_valid = True
409408
for xml_file in package_xml_files:
410409
self.xml_valid = True
@@ -552,10 +551,12 @@ def check_and_format_files(self, package_xml_files):
552551
return True
553552

554553
def check_and_format(self, src):
554+
self.logger.info(f"Searching for package.xml files in {src} ...")
555555
package_xml_files = find_package_xml_files(src)
556556
if not package_xml_files:
557557
self.logger.info("No package.xml files found in the provided paths.")
558558
return
559+
self.logger.info(f"Found {len(package_xml_files)} package.xml files.")
559560
return self.check_and_format_files(package_xml_files)
560561

561562

0 commit comments

Comments
 (0)