@@ -20,6 +20,7 @@ internal sealed class ListenerActor : ReceiveActor
2020 private readonly RouteTable _routeTable ;
2121 private readonly IServiceProvider _services ;
2222 private readonly IMaterializer _materializer ;
23+ private readonly string ? _connectionLoggingCategory ;
2324
2425 private UniqueKillSwitch ? _listenerKillSwitch ;
2526 private int _connectionCounter ;
@@ -48,7 +49,8 @@ public ListenerActor(
4849 TurboRequestDelegate pipeline ,
4950 RouteTable routeTable ,
5051 IServiceProvider services ,
51- IMaterializer materializer )
52+ IMaterializer materializer ,
53+ string ? connectionLoggingCategory = null )
5254 {
5355 _factory = factory ;
5456 _listenerOptions = listenerOptions ;
@@ -57,6 +59,7 @@ public ListenerActor(
5759 _routeTable = routeTable ;
5860 _services = services ;
5961 _materializer = materializer ;
62+ _connectionLoggingCategory = connectionLoggingCategory ;
6063
6164 Receive < StartListening > ( _ => OnStartListening ( ) ) ;
6265 Receive < IncomingConnection > ( OnIncomingConnection ) ;
@@ -120,7 +123,8 @@ private void OnIncomingConnection(IncomingConnection msg)
120123 _routeTable ,
121124 connectionInfo ,
122125 _services ,
123- _materializer ) ) ;
126+ _materializer ,
127+ _connectionLoggingCategory ) ) ;
124128
125129 Context . Parent . Tell ( new ConnectionStarted ( connectionId , child ) ) ;
126130 }
@@ -193,8 +197,10 @@ public static Props Create(
193197 TurboRequestDelegate pipeline ,
194198 RouteTable routeTable ,
195199 IServiceProvider services ,
196- IMaterializer materializer )
200+ IMaterializer materializer ,
201+ string ? connectionLoggingCategory = null )
197202 => Props . Create ( ( ) => new ListenerActor (
198203 factory , listenerOptions , serverOptions ,
199- pipeline , routeTable , services , materializer ) ) ;
204+ pipeline , routeTable , services , materializer ,
205+ connectionLoggingCategory ) ) ;
200206}
0 commit comments