Skip to content

Commit

Permalink
Merge pull request #5020 from bcgov/dev-ST-FOIMOD-2894
Browse files Browse the repository at this point in the history
Remove json DT error from logging + (Postpone leverage the right enco…
  • Loading branch information
sumathi-thirumani authored Jan 24, 2024
2 parents b972819 + 4ec1da3 commit b6c1c7e
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 b6c1c7e

Please sign in to comment.