Skip to content

Commit 80b353f

Browse files
committed
removes comments
1 parent e3da69b commit 80b353f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,26 +121,13 @@ export class ConnectClusterTool extends AtlasToolBase {
121121
expiryDate,
122122
};
123123

124-
this.session.logger.debug({
125-
id: LogId.atlasConnectFailure,
126-
context: "atlas-connect-cluster",
127-
message: `Connection string received: ${connectionString}`,
128-
});
129124
const cn = new URL(connectionString);
130125
cn.username = username;
131126
cn.password = password;
132-
if (connectionType !== "privateEndpoint") {
133-
cn.searchParams.set("authSource", "admin");
134-
}
127+
cn.searchParams.set("authSource", "admin");
135128

136129
this.session.keychain.register(username, "user");
137130
this.session.keychain.register(password, "password");
138-
const thing = cn.toString();
139-
this.session.logger.debug({
140-
id: LogId.atlasConnectFailure,
141-
context: "atlas-connect-cluster",
142-
message: `>>>>>> Connection string used: ${thing}`,
143-
});
144131

145132
return { connectionString: cn.toString(), atlas: connectedAtlasCluster };
146133
}

0 commit comments

Comments
 (0)