Reduce excessive logging about database status
This commit is contained in:
@@ -169,11 +169,6 @@ const _getConnection = async ({ databaseName, minDatabaseVersion }) => {
|
|||||||
const connection = await database.open(databaseName);
|
const connection = await database.open(databaseName);
|
||||||
const databaseVersion = connection.version;
|
const databaseVersion = connection.version;
|
||||||
const isValidDatabaseVersion = databaseVersion >= minDatabaseVersion;
|
const isValidDatabaseVersion = databaseVersion >= minDatabaseVersion;
|
||||||
console.log('Database status', {
|
|
||||||
databaseVersion,
|
|
||||||
isValidDatabaseVersion,
|
|
||||||
minDatabaseVersion,
|
|
||||||
});
|
|
||||||
if (!isValidDatabaseVersion) {
|
if (!isValidDatabaseVersion) {
|
||||||
throw new Error(`Expected database version (${databaseVersion})` +
|
throw new Error(`Expected database version (${databaseVersion})` +
|
||||||
` to be at least ${minDatabaseVersion}`);
|
` to be at least ${minDatabaseVersion}`);
|
||||||
|
Reference in New Issue
Block a user