Skip to content

Commit

Permalink
Remove json DT error from logging + (Postpone leverage the right enco…
Browse files Browse the repository at this point in the history
…der)
  • Loading branch information
sumathi.thirumani committed Jan 24, 2024
1 parent 5806919 commit 4ec1da3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class senderservice:
"""

def send(self, servicekey, content, _messageattachmentlist, requestjson):
logging.debug("Begin: Send email for request = "+json.dumps(requestjson))
#logging.debug("Begin: Send email for request = "+json.dumps(requestjson))
msg = MIMEMultipart()
msg['From'] = MAIL_FROM_ADDRESS
msg['To'] = requestjson["email"]
Expand All @@ -56,7 +56,7 @@ def send(self, servicekey, content, _messageattachmentlist, requestjson):
#smtpobj.login(MAIL_SRV_USERID, MAIL_SRV_PASSWORD)
smtpobj.sendmail(msg['From'], msg['To'], msg.as_string())
smtpobj.quit()
logging.debug("End: Send email for request = "+json.dumps(requestjson))
#logging.debug("End: Send email for request = "+json.dumps(requestjson))
return {"success" : True, "message": "Sent successfully"}
except Exception as e:
logging.exception(e)
Expand Down

0 comments on commit 4ec1da3

Please sign in to comment.