Skip to content

Commit

Permalink
DBZ-8053 Use debug log level
Browse files Browse the repository at this point in the history
  • Loading branch information
twthorn committed Jul 30, 2024
1 parent 379f61e commit 6f7e6de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public List<String> getTables() {
}

private static void logResponse(Vtgate.ExecuteResponse response, String query) {
LOGGER.info("Got response: {} for query: {}", response, query);
LOGGER.debug("Got response: {} for query: {}", response, query);
}

private List<String> getVitessShards() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public VitessReplicationConnection(VitessConnectorConfig config, VitessDatabaseS
* @throws StatusRuntimeException if the connection is not valid, or SQL statement can not be successfully exected
*/
public Vtgate.ExecuteResponse execute(String sqlStatement) {
LOGGER.info("Executing sqlStament {}", sqlStatement);
LOGGER.debug("Executing sqlStament {}", sqlStatement);
ManagedChannel channel = newChannel(config.getVtgateHost(), config.getVtgatePort(), config.getGrpcMaxInboundMessageSize());
managedChannel.compareAndSet(null, channel);

Expand All @@ -83,7 +83,7 @@ public Vtgate.ExecuteResponse execute(String sqlStatement, String shard) {

String target = String.format("%s:%s@%s", config.getKeyspace(), shard, config.getTabletType());
Vtgate.Session session = Vtgate.Session.newBuilder().setTargetString(target).setAutocommit(true).build();
LOGGER.info("Autocommit {}", session.getAutocommit());
LOGGER.debug("Autocommit {}", session.getAutocommit());
Vtgate.ExecuteRequest request = Vtgate.ExecuteRequest.newBuilder()
.setQuery(Proto.bindQuery(sqlStatement, Collections.emptyMap()))
.setSession(session)
Expand Down

0 comments on commit 6f7e6de

Please sign in to comment.