Skip to content

Commit

Permalink
close akkadotnet#3635 - properly use InfoLogging to capture context f…
Browse files Browse the repository at this point in the history
…or important cluster events
  • Loading branch information
Aaronontheweb committed Nov 1, 2018
1 parent 874dac0 commit ad9371d
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 56 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 [{0}] - " + template, _selfAddress, arg1);
_log.Info($"Cluster Node [{_selfAddress}] - " + template, arg1);
}

/// <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 [{0}] - " + template, _selfAddress, arg1, arg2);
_log.Info($"Cluster Node [{_selfAddress}] - " + template, arg1, arg2);
}
}

Expand Down
Loading

0 comments on commit ad9371d

Please sign in to comment.