Merge pull request #21815 from akka/wip-21674-patriknw
Handle early termination of system when starting logger, #21674
This commit is contained in:
commit
aa142ef83b
1 changed files with 5 additions and 3 deletions
|
|
@ -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 + "]")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue