secure mongo url on error print
This commit is contained in:
parent
1f47d019e5
commit
69f48b83c4
2
index.js
2
index.js
@ -9,7 +9,7 @@ if (
|
|||||||
!process.env.COMMAND ||
|
!process.env.COMMAND ||
|
||||||
!process.env.ARGUMENT
|
!process.env.ARGUMENT
|
||||||
) {
|
) {
|
||||||
throw new Error(`process.env.MONGO_URL ${process.env.MONGO_URL}
|
throw new Error(`process.env.MONGO_URL ${process.env.MONGO_URL?.replace(/./ig, '*')}
|
||||||
process.env.DB_NAME ${process.env.DB_NAME}
|
process.env.DB_NAME ${process.env.DB_NAME}
|
||||||
process.env.COLLECTION_NAME ${process.env.COLLECTION_NAME}
|
process.env.COLLECTION_NAME ${process.env.COLLECTION_NAME}
|
||||||
process.env.COMMAND ${process.env.COMMAND}
|
process.env.COMMAND ${process.env.COMMAND}
|
||||||
|
Loading…
Reference in New Issue
Block a user