Merge pull request #21815 from akka/wip-21674-patriknw

Handle early termination of system when starting logger, #21674
This commit is contained in:
Patrik Nordwall 2016-11-16 21:30:43 +01:00 committed by GitHub
commit aa142ef83b

View file

@ -190,9 +190,11 @@ private[typed] class EventStreamImpl(private val debug: Boolean)(implicit privat
}
} catch {
case e: Exception
System.err.println("error while starting up loggers")
e.printStackTrace()
throw new akka.ConfigurationException("Could not start logger due to [" + e.toString + "]")
if (!system.whenTerminated.isCompleted) {
System.err.println("error while starting up loggers")
e.printStackTrace()
throw new akka.ConfigurationException("Could not start logger due to [" + e.toString + "]")
}
}
}