Skip to content

Commit 87d36b3

Browse files
authored
fix: [hbase-cbt-replication] use instance/project URI in log (#3575)
* fix: Use instance/project URI in log * remove trailing slash
1 parent b61d3fd commit 87d36b3

File tree

1 file changed

+3
-1
lines changed
  • hbase-migration-tools/bigtable-hbase-replication/bigtable-hbase-replication-core/src/main/java/com/google/cloud/bigtable/hbase/replication

1 file changed

+3
-1
lines changed

hbase-migration-tools/bigtable-hbase-replication/bigtable-hbase-replication-core/src/main/java/com/google/cloud/bigtable/hbase/replication/CloudBigtableReplicator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ static synchronized SharedResources getInstance(Configuration conf) {
119119
configurationCopy.set(BigtableOptionsFactory.CUSTOM_USER_AGENT_KEY, "HBaseReplication");
120120
// If an App profile is provided, it will be picked automatically by the connection.
121121
Connection connection = BigtableConfiguration.connect(configurationCopy);
122-
LOG.info("Created a connection to CBT. " + projectId + "--" + instanceId);
122+
LOG.info(
123+
String.format(
124+
"Created a connection to CBT. projects/%s/instances/%s", projectId, instanceId));
123125

124126
INSTANCE = new SharedResources(connection, executorService);
125127
}

0 commit comments

Comments
 (0)