Skip to content

Commit

Permalink
Merge pull request #311 from pixlise/feature/impersonate-user
Browse files Browse the repository at this point in the history
Mongo dump/restore more verbose logging
  • Loading branch information
pnemere authored Sep 16, 2024
2 parents 84527ae + c4d40b6 commit 2f14d62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/ws/wsHelpers/sync-mongo-dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"path"
"strings"

"github.com/mongodb/mongo-tools/common/log"
"github.com/mongodb/mongo-tools/common/options"
"github.com/mongodb/mongo-tools/mongodump"
"github.com/pixlise/core/v4/api/services"
Expand Down Expand Up @@ -60,7 +61,7 @@ func MakeMongoDumpInstance(mongoDetails mongoDBConnection.MongoConnectionDetails
}
inputOptions := &mongodump.InputOptions{}

//log.SetVerbosity(toolOptions.Verbosity)
log.SetVerbosity(nil /*toolOptions.Verbosity*/)

return &mongodump.MongoDump{
ToolOptions: toolOptions,
Expand Down
3 changes: 2 additions & 1 deletion api/ws/wsHelpers/sync-mongo-restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"path"
"strings"

"github.com/mongodb/mongo-tools/common/log"
"github.com/mongodb/mongo-tools/common/options"
"github.com/mongodb/mongo-tools/mongorestore"
"github.com/pixlise/core/v4/api/services"
Expand Down Expand Up @@ -67,7 +68,7 @@ func MakeMongoRestoreInstance(mongoDetails mongoDBConnection.MongoConnectionDeta
NSTo: []string{restoreToDBName},
}

//log.SetVerbosity(toolOptions.Verbosity)
log.SetVerbosity(nil /*toolOptions.Verbosity*/)

return mongorestore.New(mongorestore.Options{
ToolOptions: toolOptions,
Expand Down

0 comments on commit 2f14d62

Please sign in to comment.