You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2020/01/22 00:52:46 UTC

[servicecomb-java-chassis] 05/05: [SCB-1725]mute some logs to make travis CI happy

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git

commit d294674c3634915c85e718ed19f483834cf4bab8
Author: liubao <bi...@qq.com>
AuthorDate: Tue Jan 21 15:49:40 2020 +0800

    [SCB-1725]mute some logs to make travis CI happy
---
 .../org/apache/servicecomb/core/SCBEngine.java     |  2 +-
 .../config/priority/PriorityProperty.java          |  2 +-
 .../src/test/resources/logback.xml                 | 31 ++++++++++++++++++++++
 .../src/test/resources/config/log4j.z.properties   |  4 +--
 .../src/test/resources/logback.xml                 | 31 ++++++++++++++++++++++
 5 files changed, 66 insertions(+), 4 deletions(-)

diff --git a/core/src/main/java/org/apache/servicecomb/core/SCBEngine.java b/core/src/main/java/org/apache/servicecomb/core/SCBEngine.java
index 69b5fc6..674f9b1 100644
--- a/core/src/main/java/org/apache/servicecomb/core/SCBEngine.java
+++ b/core/src/main/java/org/apache/servicecomb/core/SCBEngine.java
@@ -287,7 +287,7 @@ public class SCBEngine {
           status = SCBStatus.UP;
           triggerEvent(EventType.AFTER_REGISTRY);
           EventManager.unregister(this);
-          LOGGER.info("ServiceComb is ready.");
+          LOGGER.warn("ServiceComb is ready.");
         }
       }
     });
diff --git a/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/priority/PriorityProperty.java b/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/priority/PriorityProperty.java
index e7fc6a4..53cc9cc 100644
--- a/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/priority/PriorityProperty.java
+++ b/foundations/foundation-config/src/main/java/org/apache/servicecomb/config/priority/PriorityProperty.java
@@ -167,7 +167,7 @@ public class PriorityProperty<T> {
       LOGGER.debug("config inited, \"{}\" set to {}, effective key is \"{}\".",
           joinedPriorityKeys, value, effectiveKey);
     } else {
-      LOGGER.info("config changed, \"{}\" changed from {} to {}, effective key is \"{}\".",
+      LOGGER.debug("config changed, \"{}\" changed from {} to {}, effective key is \"{}\".",
           joinedPriorityKeys, finalValue, value, effectiveKey);
     }
     finalValue = value;
diff --git a/integration-tests/springmvc-tests/springmvc-tests-general-with-springboot/src/test/resources/logback.xml b/integration-tests/springmvc-tests/springmvc-tests-general-with-springboot/src/test/resources/logback.xml
new file mode 100644
index 0000000..897ed2e
--- /dev/null
+++ b/integration-tests/springmvc-tests/springmvc-tests-general-with-springboot/src/test/resources/logback.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration scan="true">
+  <jmxConfigurator/>
+  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+    <encoder>
+      <pattern>%d [%level] [%thread][%marker] - %msg (%F:%L\)%n</pattern>
+    </encoder>
+  </appender>
+  <logger name="org.apache.servicecomb.common.javassist.JavassistUtils" level="WARN"/>
+  <logger name="org.apache.servicecomb.core.definition.schema.ProducerSchemaFactory" level="WARN"/>
+  <root level="WARN">
+    <appender-ref ref="STDOUT"/>
+  </root>
+</configuration>
\ No newline at end of file
diff --git a/integration-tests/springmvc-tests/springmvc-tests-general/src/test/resources/config/log4j.z.properties b/integration-tests/springmvc-tests/springmvc-tests-general/src/test/resources/config/log4j.z.properties
index 8541241..02401e6 100644
--- a/integration-tests/springmvc-tests/springmvc-tests-general/src/test/resources/config/log4j.z.properties
+++ b/integration-tests/springmvc-tests/springmvc-tests-general/src/test/resources/config/log4j.z.properties
@@ -14,8 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-log4j.logger.runLogger=INFO
-log4j.rootLogger=INFO,paas,stdout
+log4j.logger.runLogger=WARN
+log4j.rootLogger=WARN,paas,stdout
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
 log4j.appender.stdout.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
diff --git a/integration-tests/springmvc-tests/springmvc-tests-simplified-mapping-with-springboot/src/test/resources/logback.xml b/integration-tests/springmvc-tests/springmvc-tests-simplified-mapping-with-springboot/src/test/resources/logback.xml
new file mode 100644
index 0000000..897ed2e
--- /dev/null
+++ b/integration-tests/springmvc-tests/springmvc-tests-simplified-mapping-with-springboot/src/test/resources/logback.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration scan="true">
+  <jmxConfigurator/>
+  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+    <encoder>
+      <pattern>%d [%level] [%thread][%marker] - %msg (%F:%L\)%n</pattern>
+    </encoder>
+  </appender>
+  <logger name="org.apache.servicecomb.common.javassist.JavassistUtils" level="WARN"/>
+  <logger name="org.apache.servicecomb.core.definition.schema.ProducerSchemaFactory" level="WARN"/>
+  <root level="WARN">
+    <appender-ref ref="STDOUT"/>
+  </root>
+</configuration>
\ No newline at end of file