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); var transport = new UnixRpcTransport(this.registry);
this.transports.Add(transport); this.transports.Add(transport);
transport.Start(); 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() private void StartPipeTransport()
@ -100,6 +100,6 @@ internal class RpcHostService : IServiceType, IInternalDisposableService
var transport = new PipeRpcTransport(this.registry); var transport = new PipeRpcTransport(this.registry);
this.transports.Add(transport); this.transports.Add(transport);
transport.Start(); 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> /// </summary>
internal class PipeRpcTransport : IRpcTransport 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 RpcServiceRegistry registry;
private readonly CancellationTokenSource cts = new(); private readonly CancellationTokenSource cts = new();
@ -107,7 +107,6 @@ internal class PipeRpcTransport : IRpcTransport
private async Task AcceptLoopAsync() private async Task AcceptLoopAsync()
{ {
this.log.Information("PipeRpcHost starting on pipe {Pipe}", this.PipeName);
var token = this.cts.Token; var token = this.cts.Token;
var security = this.BuildPipeSecurity(); var security = this.BuildPipeSecurity();

View file

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

View file

@ -1,5 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using Dalamud.Plugin.Services;
namespace Dalamud.Plugin.SelfTest; namespace Dalamud.Plugin.SelfTest;
/// <summary> /// <summary>
@ -44,7 +46,7 @@ namespace Dalamud.Plugin.SelfTest;
/// } /// }
/// </code> /// </code>
/// </example> /// </example>
public interface ISelfTestRegistry public interface ISelfTestRegistry : IDalamudService
{ {
/// <summary> /// <summary>
/// Registers the self-test steps for this plugin. /// 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. /// <c>dalamud://plugin/{PLUGIN_INTERNAL_NAME}/...</c> namespace.
/// </summary> /// </summary>
[Experimental("DAL_RPC", Message = "This service will be finalized around 7.41 and may change before then.")] [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> /// <summary>
/// A delegate containing the received URI. /// A delegate containing the received URI.