@@ -74,7 +74,7 @@ export class MysqlAdapter implements DbAdapter {
74
74
}
75
75
76
76
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 } ` ) ;
78
78
79
79
const signer = new Signer ( {
80
80
region : this . awsRegion ,
@@ -84,7 +84,7 @@ export class MysqlAdapter implements DbAdapter {
84
84
} ) ;
85
85
86
86
const token = await signer . getAuthToken ( ) ;
87
- console . error ( `[INFO] AWS auth token generated successfully` ) ;
87
+ console . info ( `[INFO] AWS auth token generated successfully` ) ;
88
88
return token ;
89
89
} catch ( err ) {
90
90
console . error ( `[ERROR] Failed to generate AWS auth token: ${ ( err as Error ) . message } ` ) ;
@@ -97,11 +97,11 @@ export class MysqlAdapter implements DbAdapter {
97
97
*/
98
98
async init ( ) : Promise < void > {
99
99
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 } ` ) ;
101
101
102
102
// Handle AWS IAM authentication
103
103
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 } ` ) ;
105
105
106
106
try {
107
107
const authToken = await this . generateAwsAuthToken ( ) ;
@@ -121,7 +121,7 @@ export class MysqlAdapter implements DbAdapter {
121
121
this . connection = await mysql . createConnection ( this . config ) ;
122
122
}
123
123
124
- console . error ( `[INFO] MySQL connection established successfully` ) ;
124
+ console . info ( `[INFO] MySQL connection established successfully` ) ;
125
125
} catch ( err ) {
126
126
console . error ( `[ERROR] MySQL connection error: ${ ( err as Error ) . message } ` ) ;
127
127
if ( this . awsIamAuth ) {
0 commit comments