summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-01-31 23:13:23 +0100
committerGitHub <noreply@github.com>2023-01-31 23:13:23 +0100
commit1b6bc94afc9c32e171b343549a68959f0c569701 (patch)
tree9d09b9d0262a8176be14cae5092d16478127fa0a
parentFix missing props in welcome message creation, which causes every client who ... (diff)
downloadserver-1b6bc94afc9c32e171b343549a68959f0c569701.tar.xz
Add a tiny bit of extra logging to database connection
-rw-r--r--src/util/util/Database.ts7
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();
 	}