From 7690d725fba4fa9c82ed0ed9e59e3878263f09a1 Mon Sep 17 00:00:00 2001 From: Matthew Rich Date: Mon, 20 May 2024 09:56:49 -0700 Subject: [PATCH] add logging --- transition.go | 2 ++ 1 file changed, 2 insertions(+) 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