Преглед на файлове

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

萌萌哒Sakura酱 преди 6 години
родител
ревизия
8cf93efc31
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      pigx-visual/pigx-monitor/src/main/java/com/pig4cloud/pigx/monitor/support/StatusChangeNotifier.java

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