Add logging for when lacking session info
What does this MR do and why?
Add logging to the IdentityVerificationController for when session[:verification_user_id] is missing so we can debug
part of: gitlab-org/modelops/anti-abuse/team-tasks#250
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Monitor the application_json.log:
tail -f log/application_json.log
- As a logged in user visit
http://localhost:3000/users/identity_verification
- You should see a new log
IdentityVerification::Error
with details like:{"severity":"INFO","time":"2023-03-03T18:05:24.012Z","correlation_id":"01GTMACTJ294ZZVRNBVSNRT5HE","message":"IdentityVerification::Error","event":"Verification User Not Found","username":"root","ip":"127.0.0.1","reason":"signed_in: true, state: {\"email\"=\u003etrue}, verified: true","referer":null}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jay