diff --git a/transition.go b/transition.go index 14422f0..d100cf9 100644 --- a/transition.go +++ b/transition.go @@ -5,6 +5,7 @@ package machine import ( _ "errors" "fmt" + "log/slog" ) type Transitioner interface { @@ -24,6 +25,7 @@ func NewTransition(trigger string, source State, dest State) Transitioner { } func (r *Transition) Run(m Modeler) error { + slog.Info("Transition.Run()", "transition", r, "model" m) currentState := m.InspectState() if currentState == r.dest { return nil