Skip to content

Commit

Permalink
close #4530 - skip call to LogSource.FromActorRef to prevent NRE duri…
Browse files Browse the repository at this point in the history
…ng RemotingTerminator startup (#4532)
  • Loading branch information
Aaronontheweb committed Jul 30, 2020
1 parent 163d5b8 commit 796b74c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Akka.Remote/RemoteActorRefProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,9 @@ private class RemotingTerminator : FSM<TerminatorState, Internals>, IRequiresMes
public RemotingTerminator(IActorRef systemGuardian)
{
_systemGuardian = systemGuardian;
_log = Context.GetLogger();

// can't use normal Logger.GetLogger(this IActorContext) here due to https://github.com/akkadotnet/akka.net/issues/4530
_log = Logging.GetLogger(Context.System.EventStream, "remoting-terminator");
InitFSM();
}

Expand Down

0 comments on commit 796b74c

Please sign in to comment.