Skip to content

Commit

Permalink
chore: 메일 전송 결과에 emoji prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
roeniss committed Feb 12, 2024
1 parent faab3e7 commit ac29589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dhapi/client/mailjet_email_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def send_email(self, subject, body):
}

result = self._mailjet.send.create(data=data)

logging.debug(result.json())

if result.status_code == 200:
logger.info("메일 전송에 성공했습니다.")
logger.info("✉️ 메일 전송에 성공했습니다.")
else:
logger.error(f"메일 전송에 실패했습니다. (result: {result.json()})")
raise RuntimeError(f"메일 전송에 실패했습니다. (status_code: {result.status_code})")
logger.error(f"❗ 메일 전송에 실패했습니다. (result: {result.json()})")

0 comments on commit ac29589

Please sign in to comment.