ログ表示変更
This commit is contained in:
parent
5d55d438ed
commit
9388ce0ee7
@ -166,14 +166,14 @@ def daily_data_unreceive_check(records: list, execute_date: str) -> tuple[list[d
|
||||
|
||||
# ③ 設定ファイル[受領チェック対象ファイルリスト]を読み込む
|
||||
try:
|
||||
logger.info('I-03-01 ' +'受領チェック対象ファイルリスト読込 読込元:' + f'{CONFIG_BUCKET_NAME}/{event_parameter["check_target_file_list"]}/{receive_date}/')
|
||||
logger.info('I-03-01 ' +'受領チェック対象ファイルリスト読込 読込元:' + f'{CONFIG_BUCKET_NAME}/{event_parameter["check_target_file_list"]}')
|
||||
check_target_file_list_response = s3_client.get_object(
|
||||
Bucket=CONFIG_BUCKET_NAME,
|
||||
Key=f'{event_parameter["check_target_file_list"]}'
|
||||
)
|
||||
logger.info('I-03-02 受領チェック対象ファイルリストを読み込みました')
|
||||
except Exception as e:
|
||||
logger.exception(f"E-03-01 受領チェック対象ファイルリストの読み込みに失敗しました エラー内容:{e} ファイル名:{event_parameter['check_target_file_list']}")
|
||||
logger.exception(f"E-03-01 受領チェック対象ファイルリストの読み込みに失敗しました エラー内容:{e} 読込元:{CONFIG_BUCKET_NAME}/{event_parameter["check_target_file_list"]}")
|
||||
batch_failed_items.append(make_failure_item_on_error(message_id))
|
||||
continue
|
||||
|
||||
@ -239,7 +239,7 @@ def daily_data_unreceive_check(records: list, execute_date: str) -> tuple[list[d
|
||||
logger.info('I-05-04 通知メール(タイトル)テンプレートファイルを読み込みました')
|
||||
except Exception as e:
|
||||
logger.exception(
|
||||
f'E-05-01 通知メール(タイトル)テンプレートファイルの読み込みに失敗しました エラー内容:{e} ファイル名:{event_parameter["notice_mail_title_template"]}')
|
||||
f'E-05-01 通知メール(タイトル)テンプレートファイルの読み込みに失敗しました エラー内容:{e} 読込元:{CONFIG_BUCKET_NAME}/{event_parameter["notice_mail_title_template"]}')
|
||||
batch_failed_items.append(
|
||||
make_failure_item_on_error(message_id))
|
||||
continue
|
||||
@ -255,7 +255,7 @@ def daily_data_unreceive_check(records: list, execute_date: str) -> tuple[list[d
|
||||
mail_body = substitute_mail_template(mail_body_template, mail_message)
|
||||
logger.info('I-05-06 通知メール(本文)テンプレートファイルを読み込みました')
|
||||
except Exception as e:
|
||||
logger.exception(f'E-05-02 通知メール(本文)テンプレートファイルの読み込みに失敗しました エラー内容:{e} ファイル名:{event_parameter["notice_mail_body_template"]}')
|
||||
logger.exception(f'E-05-02 通知メール(本文)テンプレートファイルの読み込みに失敗しました エラー内容:{e} 読込元:{CONFIG_BUCKET_NAME}/{event_parameter["notice_mail_body_template"]}')
|
||||
batch_failed_items.append(make_failure_item_on_error(message_id))
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user