Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change proxy log print at Docker images, get more information #17788

Merged
merged 1 commit into from
May 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ protected void assertCheckMatchConsistencySuccess() throws InterruptedException

@After
public void stopContainer() {
if (composedContainer instanceof DockerComposedContainer) {
log.info(((DockerComposedContainer) composedContainer).getProxyContainer().getLogs());
}
composedContainer.stop();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ public void stop() {
@Override
public String getProxyJdbcUrl(final String databaseName) {
return getDatabaseContainer().getJdbcUrl(getProxyContainer().getHost(), getProxyContainer().getFirstMappedPort(), databaseName);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,16 @@
<pattern>[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="org.apache.shardingsphere" level="WARN" additivity="false">
<logger name="org.apache.shardingsphere.mode" level="INFO" additivity="false">
<appender-ref ref="console" />
</logger>

<logger name="org.apache.shardingsphere.data.pipeline" level="INFO" additivity="false">
<appender-ref ref="console" />
</logger>
<logger name="org.apache.shardingsphere.driver" level="INFO" additivity="false">
<appender-ref ref="console" />
</logger>
<logger name="com.zaxxer.hikari.pool.ProxyConnection" level="OFF" />
<root>
<level value="WARN" />
<appender-ref ref="console" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<logger name="org.springframework.jdbc.core.JdbcTemplate" level="DEBUG" additivity="false">
<appender-ref ref="console" />
</logger>
<logger name="com.zaxxer.hikari.pool.ProxyConnection" level="ERROR" />
<logger name="com.zaxxer.hikari.pool.ProxyConnection" level="OFF" />
<root level="INFO">
<appender-ref ref="console" />
</root>
Expand Down