GSA / notifications-admin

The UI of Notify.gov
https://notify.gov
Other
10 stars 2 forks source link

Add debug for admin #1588 #1595

Closed terrazoon closed 3 weeks ago

terrazoon commented 4 weeks ago

Description

Add some debug to make it easier to work on user-reported defects.

Write the partial phone number to the log (user can provide this). This allows us to search and find the start time for the issue. Then link the partial phone number to the job_id through the logging, so that we can also search by job_id. This will allow us to determine if create_job runs successfully and if the one-off csv gets uploaded successfully to S3.

Security Considerations

Masking the phone number is something we ultimately want to do in all log statements, not just special ones. This will prevent inadvertently dumping the full phone number to the logs through debug statements.