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

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 8156541  Simplify ShardingSphereProxy's startup log
     new b5389ed  Merge pull request #7459 from terrymanu/dev
8156541 is described below

commit 8156541d394715f7f972c258ff0c65e239e35cf7
Author: terrymanu <[email protected]>
AuthorDate: Tue Sep 15 16:44:22 2020 +0800

    Simplify ShardingSphereProxy's startup log
---
 .../src/main/resources/logback.xml                           | 12 ++++++++++++
 .../shardingsphere/proxy/frontend/ShardingSphereProxy.java   |  3 +++
 2 files changed, 15 insertions(+)

diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/logback.xml
 
b/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/logback.xml
index 73cf617..871d07b 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/logback.xml
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/logback.xml
@@ -26,6 +26,18 @@
         <appender-ref ref="console" />
     </logger>
     
+    <logger name="com.zaxxer.hikari" level="error">
+        <appender-ref ref="console" />
+    </logger>
+    
+    <logger name="com.atomikos" level="error">
+        <appender-ref ref="console" />
+    </logger>
+    
+    <logger name="io.netty" level="error">
+        <appender-ref ref="console" />
+    </logger>
+    
     <root>
         <level value="info" />
         <appender-ref ref="console" />
diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/ShardingSphereProxy.java
 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/ShardingSphereProxy.java
index 5ced03f..7d91a8d 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/ShardingSphereProxy.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/ShardingSphereProxy.java
@@ -32,12 +32,14 @@ import io.netty.channel.socket.nio.NioServerSocketChannel;
 import io.netty.handler.logging.LogLevel;
 import io.netty.handler.logging.LoggingHandler;
 import lombok.SneakyThrows;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.shardingsphere.proxy.backend.context.BackendExecutorContext;
 import org.apache.shardingsphere.proxy.frontend.netty.ServerHandlerInitializer;
 
 /**
  * ShardingSphere-Proxy.
  */
+@Slf4j
 public final class ShardingSphereProxy {
     
     private EventLoopGroup bossGroup;
@@ -60,6 +62,7 @@ public final class ShardingSphereProxy {
                 groupsNio(bootstrap);
             }
             ChannelFuture future = bootstrap.bind(port).sync();
+            log.info("ShardingSphere-Proxy start success.");
             future.channel().closeFuture().sync();
         } finally {
             workerGroup.shutdownGracefully();

Reply via email to