diff --git a/src/databases/Postgres.ts b/src/databases/Postgres.ts index a6e855e..d34da78 100644 --- a/src/databases/Postgres.ts +++ b/src/databases/Postgres.ts @@ -21,6 +21,9 @@ export class Postgres implements IDatabase { async init(): Promise { this.pool = new Pool(this.config.postgres); + this.pool.on("error", (err) => { + Logger.error(err.stack); + }); if (!this.config.readOnly) { if (this.config.createDbIfNotExists) {