log event types, fix script execution

pull/4/head
Zlatin Balevsky 2019-05-24 13:32:40 +01:00
parent e2acf7fddc
commit ca9bd76dba
2 changed files with 3 additions and 3 deletions

View File

@ -189,9 +189,9 @@ class Core {
} }
def binding = new Binding() def binding = new Binding()
binding.setProperty("eventBus", eventBus)
// TOOD: other bindings?
def shell = new GroovyShell(binding) def shell = new GroovyShell(binding)
binding.setProperty('eventBus', eventBus)
// TOOD: other bindings?
def script = shell.parse(f) def script = shell.parse(f)
script.run() script.run()
} }

View File

@ -23,7 +23,7 @@ class EventBus {
} }
private void publishInternal(Event e) { private void publishInternal(Event e) {
log.fine "publishing event $e" log.fine "publishing event $e of type ${e.getClass().getSimpleName()}"
def currentHandlers def currentHandlers
final def clazz = e.getClass() final def clazz = e.getClass()
synchronized(this) { synchronized(this) {