diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-01-31 23:13:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-31 23:13:23 +0100 |
commit | 1b6bc94afc9c32e171b343549a68959f0c569701 (patch) | |
tree | 9d09b9d0262a8176be14cae5092d16478127fa0a /src/util | |
parent | Fix missing props in welcome message creation, which causes every client who ... (diff) | |
download | server-1b6bc94afc9c32e171b343549a68959f0c569701.tar.xz |
Add a tiny bit of extra logging to database connection
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util/Database.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/util/util/Database.ts b/src/util/util/Database.ts index e1a4003f..3624ae02 100644 --- a/src/util/util/Database.ts +++ b/src/util/util/Database.ts @@ -89,7 +89,7 @@ export async function initDatabase(): Promise<DataSource> { } } - console.log(`[Database] ${yellow(`connecting to ${DatabaseType} db`)}`); + console.log(`[Database] ${yellow(`Connecting to ${DatabaseType} db`)}`); dbConnection = await DataSourceOptions.initialize(); @@ -103,11 +103,10 @@ export async function initDatabase(): Promise<DataSource> { } }; if (!(await dbExists())) { - console.log( - "[Database] This appears to be a fresh database. Synchronising.", - ); + console.log("[Database] This appears to be a fresh database. Synchronising."); await dbConnection.synchronize(); } else { + console.log("[Database] Applying missing migrations, if any."); await dbConnection.runMigrations(); } |