From b235b5ca2ee99b22565d515c9ffa0bb8bde089d3 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 5 Sep 2020 20:00:22 +0530 Subject: [PATCH] LogManager: added Write method with string protocol arg. --- DnsServerCore/LogManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DnsServerCore/LogManager.cs b/DnsServerCore/LogManager.cs index cdff46c3..b001c00b 100644 --- a/DnsServerCore/LogManager.cs +++ b/DnsServerCore/LogManager.cs @@ -293,6 +293,11 @@ namespace DnsServerCore } public void Write(IPEndPoint ep, DnsTransportProtocol protocol, string message) + { + Write(ep, protocol.ToString(), message); + } + + public void Write(IPEndPoint ep, string protocol, string message) { string ipInfo; @@ -303,7 +308,7 @@ namespace DnsServerCore else ipInfo = "[" + ep.ToString() + "] "; - Write(ipInfo + "[" + protocol.ToString().ToUpper() + "] " + message); + Write(ipInfo + "[" + protocol.ToUpper() + "] " + message); } public void Write(string message)