-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 4.2.0, 4.0.12
-
Component/s: mongoimport
-
None
Despite running the following command with "verbose=4", mongoimport still does not report the failing line:
$ mongoimport --drop -d sample -c routes --verbose=4 routes.json
2019-08-20T11:14:54.787-0700 using write concern: &{majority false 0}
2019-08-20T11:14:54.788-0700 using 8 decoding workers
2019-08-20T11:14:54.788-0700 using 1 insert workers
2019-08-20T11:14:54.788-0700 will listen for SIGTERM, SIGINT, and SIGKILL
2019-08-20T11:14:54.799-0700 filesize: 13321173 bytes
2019-08-20T11:14:54.799-0700 using fields:
2019-08-20T11:14:54.800-0700 connected to: mongodb://localhost/
2019-08-20T11:14:54.800-0700 ns: sample.routes
2019-08-20T11:14:54.800-0700 connected to node type: replset
2019-08-20T11:14:54.800-0700 dropping: sample.routes
2019-08-20T11:14:55.270-0700 Failed: invalid JSON input. Position: 151. Character: N
2019-08-20T11:14:55.270-0700 5000 document(s) imported successfully. 0 document(s) failed to import.
mongoimport should have:
- a verbosity level outputting the exact failing line
- a verbosity level outputting all lines