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.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.