From 963d6f1653630e3ec8828fe761a70b1ab846928d Mon Sep 17 00:00:00 2001 From: Nora Zinaeddin Date: Tue, 23 Apr 2024 11:55:55 +0200 Subject: [PATCH] Display warning message if the compilation database is empty Change the log level from info to warning when nothing was analyzed due to eg an empty compilation database. Fixes #4222 --- analyzer/codechecker_analyzer/cmd/analyze.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/analyzer/codechecker_analyzer/cmd/analyze.py b/analyzer/codechecker_analyzer/cmd/analyze.py index b676fbe9dc..305466c716 100644 --- a/analyzer/codechecker_analyzer/cmd/analyze.py +++ b/analyzer/codechecker_analyzer/cmd/analyze.py @@ -1066,9 +1066,9 @@ def main(args): analyzer_clang_version) if not actions: - LOG.info("No analysis is required.\nThere were no compilation " - "commands in the provided compilation database or " - "all of them were skipped.") + LOG.warning("No analysis is required.") + LOG.warning("There were no compilation commands in the provided " + "compilation database or all of them were skipped.") sys.exit(0) uniqued_compilation_db_file = os.path.join(