Use different logger categories for client and server in McpJsonRpcEndpoint (#110)
* Use different logger categories for client and server in McpJsonRpcEndpoint * Address PR feedback
This commit is contained in:
parent
d1217c57af
commit
8be681543d
1 changed files with 3 additions and 8 deletions
|
|
@ -14,7 +14,6 @@ namespace ModelContextProtocol.Server;
|
|||
internal sealed class McpServer : McpJsonRpcEndpoint, IMcpServer
|
||||
{
|
||||
private readonly IServerTransport? _serverTransport;
|
||||
private readonly ILogger _logger;
|
||||
private readonly string _serverDescription;
|
||||
private volatile bool _isInitializing;
|
||||
|
||||
|
|
@ -33,7 +32,6 @@ internal sealed class McpServer : McpJsonRpcEndpoint, IMcpServer
|
|||
Throw.IfNull(options);
|
||||
|
||||
_serverTransport = transport as IServerTransport;
|
||||
_logger = (ILogger?)loggerFactory?.CreateLogger<McpServer>() ?? NullLogger.Instance;
|
||||
ServerInstructions = options.ServerInstructions;
|
||||
Services = serviceProvider;
|
||||
_serverDescription = $"{options.ServerInfo.Name} {options.ServerInfo.Version}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue