Skip to content

Commit

Permalink
More diagnostics (#271, #290)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Oct 9, 2023
1 parent e08b5f4 commit 9bc34aa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ private Flux<MqttSignal> createFlux(String topic, boolean includeSubtopics) {
});
});

var result = flux.publish().autoConnect();
var result = flux
.doOnNext(s -> logger.trace("{}: receive: {}", getAddress(), s))
.doOnError(t -> logger.error("{}: errored out", getAddress(), t))
.doOnComplete(() -> logger.debug("{}: completed", getAddress()))
.publish()
.autoConnect();

var topicFilter = topic + (includeSubtopics ? "/#" : "");

Expand Down

0 comments on commit 9bc34aa

Please sign in to comment.