From ca9bd76dbac19b8b55149c88f54efbd14c82978f Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 24 May 2019 13:32:40 +0100 Subject: [PATCH] log event types, fix script execution --- core/src/main/groovy/com/muwire/core/Core.groovy | 4 ++-- core/src/main/groovy/com/muwire/core/EventBus.groovy | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/groovy/com/muwire/core/Core.groovy b/core/src/main/groovy/com/muwire/core/Core.groovy index 9ef87367..aba9dcbd 100644 --- a/core/src/main/groovy/com/muwire/core/Core.groovy +++ b/core/src/main/groovy/com/muwire/core/Core.groovy @@ -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() } diff --git a/core/src/main/groovy/com/muwire/core/EventBus.groovy b/core/src/main/groovy/com/muwire/core/EventBus.groovy index 7cdf8c10..d6d0ca4a 100644 --- a/core/src/main/groovy/com/muwire/core/EventBus.groovy +++ b/core/src/main/groovy/com/muwire/core/EventBus.groovy @@ -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) {