Skip to content

Commit

Permalink
feat: log successful hook execution
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Aug 25, 2020
1 parent 1e7d044 commit f6026cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions selfservice/flow/registration/hook.go
Expand Up @@ -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().
Expand Down

0 comments on commit f6026cf

Please sign in to comment.