Skip to content

Commit

Permalink
Merge pull request #3165 from csordasmarton/server_storage_log
Browse files Browse the repository at this point in the history
[server] Add more info log to the store API function
  • Loading branch information
bruntib authored Jan 27, 2021
2 parents eb28100 + d0567c1 commit 5d2d073
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3037,7 +3037,10 @@ def massStoreRun(self, name, tag, version, b64zip, force,
wrong_src_code_comments = []
try:
with TemporaryDirectory() as zip_dir:
LOG.info("[%s] Unzip storage file...", name)
zip_size = unzip(b64zip, zip_dir)
LOG.info("[%s] Unzip storage file done.", name)

if zip_size == 0:
raise codechecker_api_shared.ttypes.RequestFailed(
codechecker_api_shared.ttypes.
Expand Down Expand Up @@ -3072,9 +3075,11 @@ def massStoreRun(self, name, tag, version, b64zip, force,
filename_to_hash = util.load_json_or_empty(content_hash_file,
{})

LOG.info("[%s] Store source files...", name)
file_path_to_id = self.__store_source_files(source_root,
filename_to_hash,
trim_path_prefixes)
LOG.info("[%s] Store source files done.", name)

run_history_time = datetime.now()

Expand Down Expand Up @@ -3146,6 +3151,7 @@ def massStoreRun(self, name, tag, version, b64zip, force,
statistics,
description)

LOG.info("[%s] Store reports...", name)
self.__store_reports(session,
report_dir,
source_root,
Expand All @@ -3157,6 +3163,7 @@ def massStoreRun(self, name, tag, version, b64zip, force,
skip_handler,
checkers,
trim_path_prefixes)
LOG.info("[%s] Store reports done.", name)

store_handler.setRunDuration(session,
run_id,
Expand Down

0 comments on commit 5d2d073

Please sign in to comment.