From f6026cfb0418767d99d18cd50529c2b71b21d775 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 17 Aug 2020 11:18:35 +0200 Subject: [PATCH] feat: log successful hook execution --- selfservice/flow/registration/hook.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/selfservice/flow/registration/hook.go b/selfservice/flow/registration/hook.go index 15aadbf792d..a27962a3e3c 100644 --- a/selfservice/flow/registration/hook.go +++ b/selfservice/flow/registration/hook.go @@ -125,6 +125,13 @@ func (e *HookExecutor) PostRegistrationHook(w http.ResponseWriter, r *http.Reque } return err } + + e.d.Logger().WithRequest(r). + WithField("executor", fmt.Sprintf("%T", executor)). + WithField("executor_position", k). + WithField("executors", PostHookPostPersistExecutorNames(e.d.PostRegistrationPostPersistHooks(ct))). + WithField("identity_id", i.ID). + Debug("Successfully ran post registration executor.") } e.d.Logger().