Make logging parameter propagation behave properly.

This flips the logic of propagation of database logging options to child
processes following 0e8d1736.

Fixes #11774