chore: suppress memory db log message if in CI
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user