Early log messages are swallowed by the log subsystem

Steps to reproduce:

  1. Add tor_assert_nonfatal(0); before add_default_log_for_quiet_level(quiet); in src/app/main/main.c.
  2. Compile and run Tor.

What is the current bug behavior?

Tor starts normally with no message printed.

What is the expected behavior?

A message is printed, or if not possible, Tor fails to start.

Environment

  • Which version of Tor are you using? master
  • Which operating system are you using? N/A
  • Which installation method did you use? from git

Additional information

This is related to 6d8b6147; commenting out that segment allows the message to be printed, but then all the other pre-logging messages are duplicated.