Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print analyzer stdout and stderr on debug_analyze loglevel #1067

Merged
merged 1 commit into from
Oct 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libcodechecker/analyze/analysis_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,16 @@ def check(check_data):
LOG.debug("[ZIP] Writing analyzer STDOUT to /stdout")
archive.writestr("stdout", rh.analyzer_stdout)

if not quiet_output_on_stdout:
LOG.debug_analyzer('\n' + rh.analyzer_stdout)

if len(rh.analyzer_stderr) > 0:
LOG.debug("[ZIP] Writing analyzer STDERR to /stderr")
archive.writestr("stderr", rh.analyzer_stderr)

if not quiet_output_on_stdout:
LOG.debug_analyzer('\n' + rh.analyzer_stderr)

LOG.debug("Generating dependent headers via compiler...")
try:
dependencies = set(create_dependencies(rh.buildaction))
Expand Down
2 changes: 1 addition & 1 deletion libcodechecker/analyze/analyzers/analyzer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def analyze(self, res_handler, env=None):
# Construct the analyzer cmd.
analyzer_cmd = self.construct_analyzer_cmd(res_handler)

LOG.debug('\n' + ' '.join(analyzer_cmd))
LOG.debug_analyzer('\n' + ' '.join(analyzer_cmd))

res_handler.analyzer_cmd = analyzer_cmd
analyzer_cmd = ' '.join(analyzer_cmd)
Expand Down