stages/user_login: improve logging

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-24 10:58:50 +02:00
parent 44bfbb9e49
commit 10e50bc77f
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class UserLoginStageView(StageView):
self.request.session.set_expiry(delta) self.request.session.set_expiry(delta)
LOGGER.debug( LOGGER.debug(
"Logged in", "Logged in",
backend=backend,
user=self.executor.plan.context[PLAN_CONTEXT_PENDING_USER], user=self.executor.plan.context[PLAN_CONTEXT_PENDING_USER],
flow_slug=self.executor.flow.slug, flow_slug=self.executor.flow.slug,
session_duration=self.executor.current_stage.session_duration, session_duration=self.executor.current_stage.session_duration,