Skip to content

Commit

Permalink
adding heading
Browse files Browse the repository at this point in the history
  • Loading branch information
ssonthal committed Dec 5, 2024
1 parent 5ba3705 commit 15442d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nethermind/Nethermind.JsonRpc/JsonRpcUrlCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private void BuildAdditionalUrls(bool includeWebSockets)
}
private void LogTable(List<string[]> rows)
{

string[] headers = ["Additional Url", "Protocols", "Modules"];
string redSeparator = "\u001b[31m|\u001b[0m";
var columnWidths = new int[headers.Length];
Expand All @@ -155,7 +156,7 @@ private void LogTable(List<string[]> 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);
Expand Down

0 comments on commit 15442d0

Please sign in to comment.