fix: update connection message in logger (#10)
This commit is contained in:
committed by
GitHub
parent
56259adaf7
commit
5a43ebe06f
@ -11,10 +11,10 @@ export async function defineMongooseConnection({ uri, options }: { uri?: string;
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await mongoose.connect(mongooseUri, { ...mongooseOptions })
|
await mongoose.connect(mongooseUri, { ...mongooseOptions })
|
||||||
logger.info('Connected to MONGODB')
|
logger.success('Connected to MongoDB database')
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
logger.error('Error connecting to database', err)
|
logger.error('Error connecting to MongoDB database', err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user