You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2022/07/23 22:13:49 UTC

[lucene-jira-archive] branch main updated: improve messaging when attachments are skipped

This is an automated email from the ASF dual-hosted git repository.

mikemccand pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git


The following commit(s) were added to refs/heads/main by this push:
     new 354bebc7 improve messaging when attachments are skipped
354bebc7 is described below

commit 354bebc7c0c39a218a4ab4ad596cc183a3235f66
Author: Mike McCandless <mi...@apache.org>
AuthorDate: Sat Jul 23 18:13:42 2022 -0400

    improve messaging when attachments are skipped
---
 migration/src/download_jira.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/migration/src/download_jira.py b/migration/src/download_jira.py
index 13c8f8c0..0f9277d6 100644
--- a/migration/src/download_jira.py
+++ b/migration/src/download_jira.py
@@ -116,8 +116,13 @@ if __name__ == "__main__":
             issues.extend(list(range(args.min, args.max + 1)))
         else:
             issues.append(args.min)
-    
-    logger.info(f"Downloading Jira issues in {dump_dir}. Attachments are saved in {att_data_dir}.")
+
+    message = f"Downloading Jira issues in {dump_dir}."
+    if args.skip_attachments:
+        message += " Attachments will not be saved."
+    else:
+        message += f" Attachments will be saved in {att_data_dir}."
+    logger.info(message)
     for num in issues:
         if download_issue(num, dump_dir) and not args.skip_attachments:
             download_attachments(num, dump_dir, att_data_dir)