Update logsoracle, add new info logs for oracle (#388)

This commit is contained in:
Nikolay G
2024-01-11 15:30:39 +00:00
committed by GitHub
parent d456f333ff
commit db79e6d043
2 changed files with 3 additions and 0 deletions

View File

@@ -24,12 +24,15 @@ class LogsOracle(
subscription = upstream.getHead().getFlux()
.publishOn(scheduler)
.doOnError { t -> log.error("Failed to subscribe head for oracle", t) }
.doFinally { log.info("unsubscribe head") }
.subscribe { setHeight(it.height) }
setUpstream(config.rpc)
}
fun stop() {
log.info("liboracle closed")
subscription?.dispose()
subscription = null

Binary file not shown.