Skip to content

Commit

Permalink
Make messenger registrable as logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenicos committed Nov 14, 2024
1 parent 17be764 commit 7762a45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/saicone/delivery4j/AbstractMessenger.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public void start(@NotNull Broker broker) {
if (this instanceof DelayedExecutor) {
broker.setExecutor((DelayedExecutor<?>) this);
}
if (this instanceof Broker.Logger) {
broker.setLogger((Broker.Logger) this);
}

this.broker = broker;
this.broker.start();
Expand Down

0 comments on commit 7762a45

Please sign in to comment.