Fix `--ignore-pants-warning` not working with deprecated modules when not using Pantsd (#9507)
Fix `--ignore-pants-warning` not working with deprecated modules when not using Pantsd (#9507)

### Problem

While deprecating some contrib plugins via `deprecated_module()`, I realized that `--ignore-pants-warning` does not do anything.

This is because the deprecations happen _before_ we set up the filters defined in `--ignore-pants-warning`.

### Solution

Reorder the logging and options parsing so that we set up logging before parsing options.

### Result

`--ignore-pants-warning` now works when deprecating the contrib plugins.

_This does not fix Pantsd due to the complexity of that code._ This can be fixed in a followup if we deem it important enough.

[ci skip-rust-tests]
[ci skip-jvm-tests]
pantsbuild/pants,tdyas/pants,pantsbuild/pants,tdyas/pants,pantsbuild/pants,tdyas/pants,tdyas/pants,jsirois/pants,benjyw/pants,benjyw/pants,benjyw/pants,tdyas/pants,benjyw/pants,tdyas/pants,benjyw/pants,pantsbuild/pants,benjyw/pants,tdyas/pants,pantsbuild/pants,tdyas/pants,pantsbuild/pants,tdyas/pants,pantsbuild/pants,jsirois/pants,jsirois/pants,benjyw/pants