-
Type:
Task
-
Resolution: Won't Do
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... Node.js Driver Developer
I want... replace usages of process.emitWarning() with the driver's internal logger
So that... the driver stops relying on the Node.js specific process global for warnings
User Experience
- Warnings currently emitted to stderr via process.emitWarning (e.g., deprecation notices) will instead flow through the logger or standard console.warn.
Dependencies
- upstream and/or downstream requirements and timelines to bear in mind
Risks/Unknowns
- Determine how to log warnings if we have not instantiated a MongoLogger.
- Is this possible?
- Can we instantiate a Logger before emitting any warnings?
Acceptance Criteria
Implementation Requirements
Testing Requirements
- unit test, spec test sync, etc
Documentation Requirements
- DOCSP ticket, API docs, etc
Follow Up Requirements
- additional tickets to file, required releases, etc
- if node behavior differs/will differ from other drivers, confirm with dbx devs what standard to aim for and what plan, if any, exists to reconcile the diverging behavior moving forward