Fix logging broken by 73fd6cb1dea523f334a63516d73daa449d6fc99c.

It's important to delay importing of any part of the system until
after logging is configured.