add logging
This commit is contained in:
parent
7690d725fb
commit
fbffd2b947
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user