Commit f5127c81 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

linters/check-cpp: Don't produce debug log

parent be92c288
...@@ -9,16 +9,19 @@ import os ...@@ -9,16 +9,19 @@ import os
import json import json
import re import re
def setup_logging(logger):
def setup_logging(): """
logger = logging.getLogger() ``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') hdlr = logging.FileHandler('linter.log', 'w')
logger.addHandler(hdlr) logger.addHandler(hdlr)
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
return logger return logger
logger = setup_logging() logger = logging.getLogger()
#logger.debug(sys.argv) #setup_logging(logger)
path = sys.argv[1] path = sys.argv[1]
warnings = [] warnings = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment