Skip to content

Commit

Permalink
Merge pull request #3361 from csordasmarton/improve_analyze_debug_logs
Browse files Browse the repository at this point in the history
[analyzer] Improve debug log messages
  • Loading branch information
bruntib authored Jun 21, 2021
2 parents b9ee0b3 + e17d552 commit 97a60c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions analyzer/codechecker_analyzer/cmd/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,10 @@ def main(args):
compile_cmd_count)

__update_skip_file(args)

LOG.debug("Cleanup metadata file started.")
__cleanup_metadata(metadata_prev, metadata)
LOG.debug("Cleanup metadata file finished.")

LOG.debug("Analysis metadata write to '%s'", metadata_file)
with open(metadata_file, 'w',
Expand All @@ -1051,8 +1054,11 @@ def main(args):
try:
# pylint: disable=no-name-in-module
from codechecker_analyzer import analyzer_statistics
LOG.debug("Sending analyzer statistics started.")
analyzer_statistics.collect(metadata, "analyze")
LOG.debug("Sending analyzer statistics finished.")
except Exception:
LOG.debug("Failed to send analyzer statistics!")
pass

# Generally exit status is set by sys.exit() call in CodeChecker. However,
Expand Down

0 comments on commit 97a60c2

Please sign in to comment.