amazon-connect / amazon-connect-salesforce-lambda

Apache License 2.0
47 stars 35 forks source link

Logger too verbose #5

Open LorneCurrie opened 3 years ago

LorneCurrie commented 3 years ago

https://github.com/amazon-connect/amazon-connect-salesforce-lambda/blob/3a926720ee1ae550a2829f8976cdfea2bd985f69/sam-app/lambda_functions/salesforce.py#L215

With reference to the above line in the class Request, if a user sets the Logs to INFO, there is the possibility of Personal Identifiable Information or PII being sent to the Cloudwatch logs. I would recommend that any logs that print out responses from API calls, should only be in debug mode so that PII can be kept out of the logs in production.