add logging
All checks were successful
Lint / golangci-lint (push) Successful in 9m41s
Machine Tests / test (push) Successful in 35s

This commit is contained in:
Matthew Rich 2024-05-20 09:59:55 -07:00
parent 7690d725fb
commit fbffd2b947

View File

@ -25,7 +25,7 @@ func NewTransition(trigger string, source State, dest State) Transitioner {
} }
func (r *Transition) Run(m Modeler) error { func (r *Transition) Run(m Modeler) error {
slog.Info("Transition.Run()", "transition", r, "model" m) slog.Info("Transition.Run()", "transition", r, "model", m)
currentState := m.InspectState() currentState := m.InspectState()
if currentState == r.dest { if currentState == r.dest {
return nil return nil