Skip to content

Commit

Permalink
change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
targoninc-alex committed Oct 3, 2024
1 parent 683a04f commit c9ded01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/database/mariaDbDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export class MariaDbDatabase {
private pool: mariadb.Pool | null = null;

constructor(host: string | null = null, user: string | null = null, password: string | null = null, port: number | null = null) {
CLI.info(`Connecting to MariaDB at ${host}:${port} with user ${user} and database venel.`);
this.host = host || process.env.MYSQL_HOST || 'localhost';
this.port = port || 3306;
this.user = user || process.env.MYSQL_USER || 'root';
this.password = password || process.env.MYSQL_PASSWORD || '';
this.database = 'venel';
CLI.info(`Connecting to MariaDB at ${this.host}:${this.port} with user ${this.user} and database venel.`);
}

connect() {
Expand Down

0 comments on commit c9ded01

Please sign in to comment.