mirror of https://github.com/zlatinb/muwire
log event types, fix script execution
parent
e2acf7fddc
commit
ca9bd76dba
|
@ -189,9 +189,9 @@ class Core {
|
|||
}
|
||||
|
||||
def binding = new Binding()
|
||||
binding.setProperty("eventBus", eventBus)
|
||||
// TOOD: other bindings?
|
||||
def shell = new GroovyShell(binding)
|
||||
binding.setProperty('eventBus', eventBus)
|
||||
// TOOD: other bindings?
|
||||
def script = shell.parse(f)
|
||||
script.run()
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class EventBus {
|
|||
}
|
||||
|
||||
private void publishInternal(Event e) {
|
||||
log.fine "publishing event $e"
|
||||
log.fine "publishing event $e of type ${e.getClass().getSimpleName()}"
|
||||
def currentHandlers
|
||||
final def clazz = e.getClass()
|
||||
synchronized(this) {
|
||||
|
|
Loading…
Reference in New Issue