소스 검색

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