Adding shutdown hook that clears logging levels registered by Configgy, closing ticket 486
This commit is contained in:
parent
f8b385e0a3
commit
97cbd2adf2
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ package akka.servlet
|
|||
|
||||
import akka.config.Config
|
||||
import akka.util.{Logging, Bootable}
|
||||
import akka.actor.Actor
|
||||
|
||||
/*
|
||||
* This class is responsible for booting up a stack of bundles and then shutting them down
|
||||
|
|
@ -40,6 +41,7 @@ class AkkaLoader extends Logging {
|
|||
log.info("Shutting down Akka...")
|
||||
_bundles.foreach(_.onUnload)
|
||||
_bundles = None
|
||||
Actor.shutdownHook.run
|
||||
log.info("Akka succesfully shut down")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue