Actors are formatted better when logged

This commit is contained in:
Sasha Koshka 2025-03-09 01:54:53 -05:00
parent 10ca4f4671
commit 3115c5feef

View File

@ -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 {