Procházet zdrojové kódy

:art: Improving structure / format of the code.update StatusChangeNotifier log from error to info

萌萌哒Sakura酱 před 6 roky
rodič
revize
8cf93efc31

+ 2 - 2
pigx-visual/pigx-monitor/src/main/java/com/pig4cloud/pigx/monitor/support/StatusChangeNotifier.java

@@ -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());
 			}
 		});