From 15442d023c83226ffa56063c31d174051caf4bdf Mon Sep 17 00:00:00 2001 From: Shubham Sonthalia Date: Thu, 5 Dec 2024 23:35:16 +0530 Subject: [PATCH] adding heading --- src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs b/src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs index 2df3ca7c19f..591e520c988 100644 --- a/src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs +++ b/src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs @@ -137,6 +137,7 @@ private void BuildAdditionalUrls(bool includeWebSockets) } private void LogTable(List rows) { + string[] headers = ["Additional Url", "Protocols", "Modules"]; string redSeparator = "\u001b[31m|\u001b[0m"; var columnWidths = new int[headers.Length]; @@ -155,7 +156,7 @@ private void LogTable(List rows) var separator = "-" + string.Join("-", columnWidths.Select(width => new string('-', width + 2))) + "-"; - + _logger.Info("\u001b[31m*****\u001b[0m Additional RPC URLs \u001b[31m*****\u001b[0m"); _logger.Info(separator); _logger.Info(redSeparator + " " + string.Join(" " + redSeparator + " ", headers.Select((h, i) => h.PadRight(columnWidths[i]))) + " " + redSeparator); _logger.Info(separator);