From f5127c81ccb4d65f794b2b43fd3ad9b59c9a89d1 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 7 Dec 2015 10:53:44 +0100 Subject: linters/check-cpp: Don't produce debug log --- .arc-linters/check-cpp.py | 13 ++++++++----- 1 file 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 = [] -- cgit v1.2.1