summaryrefslogtreecommitdiff
path: root/.arc-linters/check-cpp.py
diff options
context:
space:
mode:
Diffstat (limited to '.arc-linters/check-cpp.py')
-rwxr-xr-x.arc-linters/check-cpp.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/.arc-linters/check-cpp.py b/.arc-linters/check-cpp.py
index c58da09bf3..1d07b4ed37 100755
--- a/.arc-linters/check-cpp.py
+++ b/.arc-linters/check-cpp.py
@@ -9,16 +9,19 @@ import os
import json
import re
-
-def setup_logging():
- logger = logging.getLogger()
+def setup_logging(logger):
+ """
+ ``arc lint`` makes it quite tricky to catch debug output from linters.
+ Log to a file to work around this.
+ """
hdlr = logging.FileHandler('linter.log', 'w')
logger.addHandler(hdlr)
logger.setLevel(logging.DEBUG)
return logger
-logger = setup_logging()
-#logger.debug(sys.argv)
+logger = logging.getLogger()
+#setup_logging(logger)
+logger.debug(sys.argv)
path = sys.argv[1]
warnings = []