diff options
author | nea <nea@nea.moe> | 2023-08-03 17:19:45 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-08-03 17:19:45 +0200 |
commit | 2b33dd1b11a0a64e1c32a3bf639d73a952b10e75 (patch) | |
tree | 12a0d7348503cd0cadc79e923d2262d0c542ea61 /src/main/kotlin/moe/nea/firmament/events | |
parent | a4c85fd6783d0c9f6d93e02ad7d02e55857b6074 (diff) | |
download | Firmament-2b33dd1b11a0a64e1c32a3bf639d73a952b10e75.tar.gz Firmament-2b33dd1b11a0a64e1c32a3bf639d73a952b10e75.tar.bz2 Firmament-2b33dd1b11a0a64e1c32a3bf639d73a952b10e75.zip |
Add some more info to event bus
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/events/FirmamentEventBus.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/FirmamentEventBus.kt b/src/main/kotlin/moe/nea/firmament/events/FirmamentEventBus.kt index 789fec2..fcf9dcb 100644 --- a/src/main/kotlin/moe/nea/firmament/events/FirmamentEventBus.kt +++ b/src/main/kotlin/moe/nea/firmament/events/FirmamentEventBus.kt @@ -13,7 +13,7 @@ import moe.nea.firmament.Firmament * A pubsub event bus. * * [subscribe] to events [publish]ed on this event bus. - * Subscriptions may not necessarily be delivered in the order or registering. + * Subscriptions may not necessarily be delivered in the order of registering. */ open class FirmamentEventBus<T : FirmamentEvent> { data class Handler<T>(val invocation: (T) -> Unit, val receivesCancelled: Boolean) @@ -33,7 +33,7 @@ open class FirmamentEventBus<T : FirmamentEvent> { try { function.invocation(event) } catch (e: Exception) { - Firmament.logger.error("Caught exception during processing event $event", e) + Firmament.logger.error("Caught exception during processing event $event by $function", e) } } } |