chore: suppress memory db log message if in CI

This commit is contained in:
Elliot DeNolf
2024-03-19 02:12:53 -04:00
parent 0e571c3e35
commit f361d153d1

View File

@@ -13,7 +13,6 @@ export const startMemoryDB = async (
process.env.NODE_OPTIONS = '--no-deprecation' process.env.NODE_OPTIONS = '--no-deprecation'
const logger = Logger() const logger = Logger()
logger.info('---- CONNECTING TO MEMORY DB ----')
switch (process.env.PAYLOAD_DATABASE) { switch (process.env.PAYLOAD_DATABASE) {
case 'postgres': case 'postgres':
@@ -23,6 +22,7 @@ export const startMemoryDB = async (
} }
default: { default: {
if (!process.env.CI) logger.info('---- CONNECTING TO MEMORY DB ----')
const db = await MongoMemoryReplSet.create({ const db = await MongoMemoryReplSet.create({
replSet: { replSet: {
count: 3, count: 3,