Actors are formatted better when logged
This commit is contained in:
parent
10ca4f4671
commit
3115c5feef
6
util.go
6
util.go
@ -77,7 +77,11 @@ func logActors (actors iter.Seq[Actor]) {
|
|||||||
}
|
}
|
||||||
types := make(map[string] int)
|
types := make(map[string] int)
|
||||||
for actor := range actors {
|
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 {
|
for typ, count := range types {
|
||||||
if count > 1 {
|
if count > 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user