-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, the $log and $debugLog test extensions test logging and debug logging inside the parse() function assuming that it's called once during the course of an extension's lifetime. However, SERVER-111605 introduces a second parse() call to DocumentSourceExtension::LiteParsedExpandable.
We should move logging into a function that's guaranteed to be called once for non-desugar extensions - bind() or compile(). I'm inclined to move it to bind() as we already have the functionality for this, whereas compile() doesn't exist yet.
- is related to
-
SERVER-111340 Implement MongoExtensionHostServices::log()
-
- Closed
-
-
SERVER-111341 Implement MongoExtensionHostServices::log_debug()
-
- Closed
-
-
SERVER-111605 Implement DocumentSourceExtension::LiteParsedExpandable & DocumentSourceExtension::LiteParsedExpanded
-
- Closed
-