diff --git a/pw_presubmit/py/pw_presubmit/cpp_checks.py b/pw_presubmit/py/pw_presubmit/cpp_checks.py index 4105a54ea..0dda74536 100644 --- a/pw_presubmit/py/pw_presubmit/cpp_checks.py +++ b/pw_presubmit/py/pw_presubmit/cpp_checks.py @@ -13,6 +13,8 @@ # the License. """C++-related checks.""" +import logging + from pw_presubmit import ( build, Check, @@ -21,12 +23,15 @@ filter_paths, ) +_LOG: logging.Logger = logging.getLogger(__name__) + @filter_paths(endswith=format_code.CPP_HEADER_EXTS, exclude=(r'\.pb\.h$', )) def pragma_once(ctx: PresubmitContext) -> None: """Presubmit check that ensures all header files contain '#pragma once'.""" for path in ctx.paths: + _LOG.debug('Checking %s', path) with open(path) as file: for line in file: if line.startswith('#pragma once'):