fix: log tweaks

- also fix a boot failure
This commit is contained in:
Kaz Wolfe 2025-11-18 15:57:37 -08:00
parent 71927a8bf6
commit 01d8fc0c7e
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
5 changed files with 8 additions and 8 deletions

View file

@ -88,7 +88,7 @@ internal class RpcHostService : IServiceType, IInternalDisposableService
var transport = new UnixRpcTransport(this.registry);
this.transports.Add(transport);
transport.Start();
this.log.Information("RpcHostService started Unix socket host: {Socket}", transport.SocketPath);
this.log.Information("RpcHostService listening to UNIX socket: {Socket}", transport.SocketPath);
}
private void StartPipeTransport()
@ -100,6 +100,6 @@ internal class RpcHostService : IServiceType, IInternalDisposableService
var transport = new PipeRpcTransport(this.registry);
this.transports.Add(transport);
transport.Start();
this.log.Information("RpcHostService started named pipe host: {Pipe}", transport.PipeName);
this.log.Information("RpcHostService listening to named pipe: {Pipe}", transport.PipeName);
}
}

View file

@ -16,7 +16,7 @@ namespace Dalamud.Networking.Rpc.Transport;
/// </summary>
internal class PipeRpcTransport : IRpcTransport
{
private readonly ModuleLog log = new("RPC/Host");
private readonly ModuleLog log = new("RPC/Transport/NamedPipe");
private readonly RpcServiceRegistry registry;
private readonly CancellationTokenSource cts = new();
@ -107,7 +107,6 @@ internal class PipeRpcTransport : IRpcTransport
private async Task AcceptLoopAsync()
{
this.log.Information("PipeRpcHost starting on pipe {Pipe}", this.PipeName);
var token = this.cts.Token;
var security = this.BuildPipeSecurity();

View file

@ -17,7 +17,7 @@ namespace Dalamud.Networking.Rpc.Transport;
/// </summary>
internal class UnixRpcTransport : IRpcTransport
{
private readonly ModuleLog log = new("RPC/UnixHost");
private readonly ModuleLog log = new("RPC/Transport/UnixSocket");
private readonly RpcServiceRegistry registry;
private readonly CancellationTokenSource cts = new();
@ -173,7 +173,6 @@ internal class UnixRpcTransport : IRpcTransport
private async Task AcceptLoopAsync()
{
this.log.Information("UnixRpcHost starting on socket {Socket}", this.SocketPath);
var token = this.cts.Token;
try

View file

@ -1,5 +1,7 @@
using System.Collections.Generic;
using Dalamud.Plugin.Services;
namespace Dalamud.Plugin.SelfTest;
/// <summary>
@ -44,7 +46,7 @@ namespace Dalamud.Plugin.SelfTest;
/// }
/// </code>
/// </example>
public interface ISelfTestRegistry
public interface ISelfTestRegistry : IDalamudService
{
/// <summary>
/// Registers the self-test steps for this plugin.

View file

@ -9,7 +9,7 @@ namespace Dalamud.Plugin.Services;
/// <c>dalamud://plugin/{PLUGIN_INTERNAL_NAME}/...</c> namespace.
/// </summary>
[Experimental("DAL_RPC", Message = "This service will be finalized around 7.41 and may change before then.")]
public interface IPluginLinkHandler
public interface IPluginLinkHandler : IDalamudService
{
/// <summary>
/// A delegate containing the received URI.