Skip to content

Commit 2c25ae4

Browse files
authored
ダウンロード時のログメッセージの修正 (#490)
* pylitrcの修正 * ログの修正 * poetry update * poetry update * version up
1 parent aa593de commit 2c25ae4

File tree

5 files changed

+51
-170
lines changed

5 files changed

+51
-170
lines changed

annofabapi/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.62.0"
1+
__version__ = "0.62.1"

annofabapi/wrapper.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,10 @@ def download_annotation_archive(self, project_id: str, dest_path: Union[str, Pat
294294
url = response.headers["Location"]
295295
response2 = self.download(url, dest_path)
296296
logger.info(
297-
"SimpleアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
297+
"SimpleアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
298298
project_id,
299299
response2.headers.get("Last-Modified"),
300+
response2.headers.get("Content-Length"),
300301
dest_path,
301302
)
302303
return url
@@ -325,9 +326,10 @@ def download_full_annotation_archive(self, project_id: str, dest_path: Union[str
325326
url = response.headers["Location"]
326327
response2 = self.download(url, dest_path)
327328
logger.info(
328-
"FullアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
329+
"FullアノテーションZIPファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
329330
project_id,
330331
response2.headers.get("Last-Modified"),
332+
response2.headers.get("Content-Length"),
331333
dest_path,
332334
)
333335
return url
@@ -1610,9 +1612,10 @@ def download_project_inputs_url(self, project_id: str, dest_path: Union[str, Pat
16101612
url = content["url"]
16111613
response2 = self.download(url, dest_path)
16121614
logger.info(
1613-
"入力データ全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1615+
"入力データ全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
16141616
project_id,
16151617
response2.headers.get("Last-Modified"),
1618+
response2.headers.get("Content-Length"),
16161619
dest_path,
16171620
)
16181621
return url
@@ -1635,9 +1638,10 @@ def download_project_tasks_url(self, project_id: str, dest_path: Union[str, Path
16351638
url = content["url"]
16361639
response2 = self.download(url, dest_path)
16371640
logger.info(
1638-
"タスク全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1641+
"タスク全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
16391642
project_id,
16401643
response2.headers.get("Last-Modified"),
1644+
response2.headers.get("Content-Length"),
16411645
dest_path,
16421646
)
16431647
return url
@@ -1667,9 +1671,10 @@ def download_project_inspections_url(self, project_id: str, dest_path: Union[str
16671671
url = content["url"]
16681672
response2 = self.download(url, dest_path)
16691673
logger.info(
1670-
"検査コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1674+
"検査コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
16711675
project_id,
16721676
response2.headers.get("Last-Modified"),
1677+
response2.headers.get("Content-Length"),
16731678
dest_path,
16741679
)
16751680
return url
@@ -1691,9 +1696,10 @@ def download_project_comments_url(self, project_id: str, dest_path: Union[str, P
16911696
url = content["url"]
16921697
response = self.download(url, dest_path)
16931698
logger.info(
1694-
"コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1699+
"コメント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
16951700
project_id,
16961701
response.headers.get("Last-Modified"),
1702+
response.headers.get("Content-Length"),
16971703
dest_path,
16981704
)
16991705
return url
@@ -1716,9 +1722,10 @@ def download_project_task_history_events_url(self, project_id: str, dest_path: U
17161722
url = content["url"]
17171723
response2 = self.download(url, dest_path)
17181724
logger.info(
1719-
"タスク履歴イベント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1725+
"タスク履歴イベント全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
17201726
project_id,
17211727
response2.headers.get("Last-Modified"),
1728+
response2.headers.get("Content-Length"),
17221729
dest_path,
17231730
)
17241731
return url
@@ -1741,9 +1748,10 @@ def download_project_task_histories_url(self, project_id: str, dest_path: Union[
17411748
url = content["url"]
17421749
response2 = self.download(url, dest_path)
17431750
logger.info(
1744-
"タスク履歴全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', file='%s'",
1751+
"タスク履歴全件ファイルをダウンロードしました。 :: project_id='%s', Last-Modified='%s', Content-Length='%s', file='%s'",
17451752
project_id,
17461753
response2.headers.get("Last-Modified"),
1754+
response2.headers.get("Content-Length"),
17471755
dest_path,
17481756
)
17491757
return url

0 commit comments

Comments
 (0)