From a0fd83bba44a7cbf55b78bded6e80506e217a47a Mon Sep 17 00:00:00 2001 From: Roger Johansson Date: Sat, 15 Oct 2022 13:34:53 +0200 Subject: [PATCH] Better protobuf type diagnostics (#1809) --- src/Proto.Remote/Serialization/Serialization.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Proto.Remote/Serialization/Serialization.cs b/src/Proto.Remote/Serialization/Serialization.cs index 6018a8c444..b0fe95df5f 100644 --- a/src/Proto.Remote/Serialization/Serialization.cs +++ b/src/Proto.Remote/Serialization/Serialization.cs @@ -202,10 +202,7 @@ private struct TypeSerializerItem public void Init(ActorSystem system) { - foreach (var tl in TypeLookup) - { - system.Diagnostics.RegisterEvent("Serialization", $"Registered Protobuf Type {tl.Key}"); - } + system.Diagnostics.RegisterObject("Serialization", "Protobuf Types", TypeLookup.Keys.ToArray()); foreach (var s in _serializers) {