Skip to content

Commit

Permalink
fix: Remove empty line while logging runtime info
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Sep 18, 2024
1 parent 630a073 commit 313b01e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Testcontainers/Clients/DockerApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace DotNet.Testcontainers.Clients
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -113,12 +114,7 @@ await RuntimeInitialized.WaitAsync(ct)
if (labels != null && labels.Count > 0)
{
runtimeInfo.AppendLine(" Labels: ");

foreach (var label in labels)
{
runtimeInfo.Append(" ");
runtimeInfo.AppendLine(label);
}
runtimeInfo.Append(string.Join(Environment.NewLine, labels.Select(label => " " + label)));
}
Logger.LogInformation("{RuntimeInfo}", runtimeInfo);
}
Expand Down

0 comments on commit 313b01e

Please sign in to comment.