From 3115c5feef4d9a8b6edb4ca609c233fa8451c631 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 9 Mar 2025 01:54:53 -0500 Subject: [PATCH] Actors are formatted better when logged --- util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util.go b/util.go index 386f4b7..11b2329 100644 --- a/util.go +++ b/util.go @@ -77,7 +77,11 @@ func logActors (actors iter.Seq[Actor]) { } types := make(map[string] int) for actor := range actors { - types[actor.Type()] += 1 + typ := actor.Type() + if named, ok := actor.(Named); ok { + typ = fmt.Sprintf("%s/%s", typ, named.Name()) + } + types[typ] += 1 } for typ, count := range types { if count > 1 {