Skip to content

Commit 6c5d501

Browse files
committed
Minor fix
1 parent 15d3b9b commit 6c5d501

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/in/erail/service/RESTServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public void start() {
2727
.<JsonObject>consumer(getServiceUniqueId())
2828
.toFlowable()
2929
.subscribeOn(Schedulers.io())
30-
.doOnSubscribe((s) -> getLog().info(String.format("%s[%s] service started", getServiceUniqueId(), Thread.currentThread().getName())))
31-
.doOnTerminate(() -> getLog().info(String.format("%s[%s] service stopped", getServiceUniqueId(), Thread.currentThread().getName())))
32-
.subscribe(this::process);
30+
.doOnSubscribe((s) -> getLog().info(() -> String.format("%s[%s] service started", getServiceUniqueId(), Thread.currentThread().getName())))
31+
.doOnTerminate(() -> getLog().info(() -> String.format("%s[%s] service stopped", getServiceUniqueId(), Thread.currentThread().getName())))
32+
.subscribe(this::process, err -> getLog().error(() -> String.format("Process exception:[%s],Error:[%s]", getServiceUniqueId(), err)));
3333
}
3434
}
3535

0 commit comments

Comments
 (0)