🎨 Improving structure / format of the code.update StatusChangeNotifier log from error to info
This commit is contained in:
1 parent
3614411cce
commit
8cf93efc31
1 file changed
+2
-2
+2
-2
@@ -26,10 +26,10 @@ public class StatusChangeNotifier extends AbstractEventNotifier {
|
||||
protected Mono<Void> doNotify(InstanceEvent event, Instance instance) {
|
||||
return Mono.fromRunnable(() -> {
|
||||
if (event instanceof InstanceStatusChangedEvent) {
|
||||
log.error("Instance {} ({}) is {}", instance.getRegistration().getName(), event.getInstance(),
|
||||
log.info("Instance {} ({}) is {}", instance.getRegistration().getName(), event.getInstance(),
|
||||
((InstanceStatusChangedEvent) event).getStatusInfo().getStatus());
|
||||
} else {
|
||||
log.error("Instance {} ({}) {}", instance.getRegistration().getName(), event.getInstance(),
|
||||
log.info("Instance {} ({}) {}", instance.getRegistration().getName(), event.getInstance(),
|
||||
event.getType());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user