Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de logs pour suivre la création et la modification de compte candidat #5555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions itou/www/job_seekers_views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,8 @@ def post(self, request, *args, **kwargs):
extra_tags="toast",
)
self.profile.save()
# TODO(ewen): add tunnel information when we have it in self.tunnel
logger.info("user=%s created job_seeker=%s", self.sender.pk, user.pk)
except ValidationError as e:
messages.error(request, " ".join(e.messages))
url = reverse("dashboard:index")
Expand Down Expand Up @@ -1137,6 +1139,7 @@ def post(self, request, *args, **kwargs):
self.profile.save()
url = self.get_exit_url()
self.job_seeker_session.delete()
logger.info("user=%s updated job_seeker=%s", request.user.pk, self.job_seeker.pk)
return HttpResponseRedirect(url)

def get_exit_url(self):
Expand Down
Loading