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 53c384a commit 1e7d044
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions selfservice/flow/login/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ func (e *HookExecutor) PostLoginHook(w http.ResponseWriter, r *http.Request, ct
}
return err
}

e.d.Logger().WithRequest(r).
WithField("executor", fmt.Sprintf("%T", executor)).
WithField("executor_position", k).
WithField("executors", PostHookExecutorNames(e.d.PostLoginHooks(ct))).
WithField("identity_id", i.ID).
Debug("Successfully ran post login executor.")
}

if a.Type == flow.TypeAPI {
Expand Down

0 comments on commit 1e7d044

Please sign in to comment.