Skip to content

Commit

Permalink
Remove string interpolation from cluster logs (#4084)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelhamed authored and Aaronontheweb committed Dec 20, 2019
1 parent 8f97c3c commit a595d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Akka.Cluster/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ internal void LogInfo(string message)
internal void LogInfo(string template, object arg1)
{
if (_settings.LogInfo)
_log.Info($"Cluster Node [{_selfAddress}] - " + template, arg1);
_log.Info("Cluster Node [{1}] - " + template, arg1, _selfAddress);
}

/// <summary>
Expand All @@ -613,7 +613,7 @@ internal void LogInfo(string template, object arg1)
internal void LogInfo(string template, object arg1, object arg2)
{
if (_settings.LogInfo)
_log.Info($"Cluster Node [{_selfAddress}] - " + template, arg1, arg2);
_log.Info("Cluster Node [{2}] - " + template, arg1, arg2, _selfAddress);
}
}

Expand Down

0 comments on commit a595d15

Please sign in to comment.