diff --git a/v2rayN/ServiceLib/Handler/Builder/CoreConfigContextBuilder.cs b/v2rayN/ServiceLib/Handler/Builder/CoreConfigContextBuilder.cs index a8cca654..9afb0b32 100644 --- a/v2rayN/ServiceLib/Handler/Builder/CoreConfigContextBuilder.cs +++ b/v2rayN/ServiceLib/Handler/Builder/CoreConfigContextBuilder.cs @@ -1,3 +1,5 @@ +using System.ComponentModel.DataAnnotations; + namespace ServiceLib.Handler.Builder; public record CoreConfigContextBuilderResult(CoreConfigContext Context, NodeValidatorResult ValidatorResult) @@ -309,6 +311,11 @@ public class CoreConfigContextBuilder } var nodeValidatorResult = NodeValidator.Validate(node, context.RunCoreType); + var msgs = new List([.. nodeValidatorResult.Errors, .. nodeValidatorResult.Warnings]); + if (msgs.Count > 0) + { + Logging.SaveLog($"{node.Remarks}: {string.Join("; ", msgs)}"); + } if (!nodeValidatorResult.Success) { return nodeValidatorResult;