SERVER-139070In Code Review
Add logging around type inference code
We need some logging since we mix multiple sources of type information and that makes it hard to track where some facts come from. To determine a type, we: - may read a type from the collection schema - may run type inference on a $match - may query path arrayness to clear arrays along a path We should log sufficient information to reconstruct the type inference steps. This should be debug-level logging.