mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
fix: remove sensative logs
This commit is contained in:
1 parent
cc9040038d
commit
46071d8830
2 files changed
+1
-2
No files matched your search
@@ -11,8 +11,6 @@ export default async function connectDB(uri) {
|
|||||||
useNewUrlParser: true,
|
useNewUrlParser: true,
|
||||||
useUnifiedTopology: true,
|
useUnifiedTopology: true,
|
||||||
})
|
})
|
||||||
console.log('Connected to MongoDB')
|
|
||||||
console.log(mongoose.models)
|
|
||||||
return db.connection.getClient()
|
return db.connection.getClient()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import { createTestUser } from './utils/auth.js'
|
|||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
await connectDB(config.db)
|
await connectDB(config.db)
|
||||||
|
console.log('Connected to MongoDB')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
|
|||||||
Reference in new issue
Block a user