Skip to content

Commit c8f007a

Browse files
committed
code review
1 parent c72bac7 commit c8f007a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/db/mysql-adapter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class MysqlAdapter implements DbAdapter {
7474
}
7575

7676
try {
77-
console.error(`[INFO] Generating AWS auth token for region: ${this.awsRegion}, host: ${this.host}, user: ${this.config.user}`);
77+
console.info(`[INFO] Generating AWS auth token for region: ${this.awsRegion}, host: ${this.host}, user: ${this.config.user}`);
7878

7979
const signer = new Signer({
8080
region: this.awsRegion,
@@ -84,7 +84,7 @@ export class MysqlAdapter implements DbAdapter {
8484
});
8585

8686
const token = await signer.getAuthToken();
87-
console.error(`[INFO] AWS auth token generated successfully`);
87+
console.info(`[INFO] AWS auth token generated successfully`);
8888
return token;
8989
} catch (err) {
9090
console.error(`[ERROR] Failed to generate AWS auth token: ${(err as Error).message}`);
@@ -97,11 +97,11 @@ export class MysqlAdapter implements DbAdapter {
9797
*/
9898
async init(): Promise<void> {
9999
try {
100-
console.error(`[INFO] Connecting to MySQL: ${this.host}, Database: ${this.database}`);
100+
console.info(`[INFO] Connecting to MySQL: ${this.host}, Database: ${this.database}`);
101101

102102
// Handle AWS IAM authentication
103103
if (this.awsIamAuth) {
104-
console.error(`[INFO] Using AWS IAM authentication for user: ${this.config.user}`);
104+
console.info(`[INFO] Using AWS IAM authentication for user: ${this.config.user}`);
105105

106106
try {
107107
const authToken = await this.generateAwsAuthToken();
@@ -121,7 +121,7 @@ export class MysqlAdapter implements DbAdapter {
121121
this.connection = await mysql.createConnection(this.config);
122122
}
123123

124-
console.error(`[INFO] MySQL connection established successfully`);
124+
console.info(`[INFO] MySQL connection established successfully`);
125125
} catch (err) {
126126
console.error(`[ERROR] MySQL connection error: ${(err as Error).message}`);
127127
if (this.awsIamAuth) {

0 commit comments

Comments
 (0)