Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
f5127c81
Commit
f5127c81
authored
Dec 07, 2015
by
Ben Gamari
🐢
Browse files
linters/check-cpp: Don't produce debug log
parent
be92c288
Changes
1
Hide whitespace changes
Inline
Side-by-side
.arc-linters/check-cpp.py
View file @
f5127c81
...
...
@@ -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
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment