Skip to content

Commit 9cac9d1

Browse files
committed
test: add log for testing
1 parent 587380c commit 9cac9d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp_linter_hooks/clang_format.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import sys
33
from argparse import ArgumentParser
44
from typing import Tuple
5-
5+
import logging
66
from .util import ensure_installed, DEFAULT_CLANG_FORMAT_VERSION
77

8+
LOG = logging.getLogger(__name__)
89

910
parser = ArgumentParser()
1011
parser.add_argument("--version", default=DEFAULT_CLANG_FORMAT_VERSION)
@@ -24,6 +25,8 @@ def run_clang_format(args=None) -> Tuple[int, str]:
2425

2526
command.extend(other_args)
2627

28+
LOG.warning(command)
29+
2730
try:
2831
# Run the clang-format command with captured output
2932
sp = subprocess.run(

0 commit comments

Comments
 (0)