log_level fix for CLI

The addition of the log_level value [0] introduces
a requirement to call options.setup() before calling
logging.setup(). This was being done in the
Promenade service but not in the CLI. This PS adds
the necessary options.setup() call.

[0]: https://review.opendev.org/629154

Change-Id: I151893387659a4d1393144387a3378ff9b517ce7
This commit is contained in:
Crank, Daniel (dc6350) 2019-08-08 14:08:51 -05:00
parent 4735ecfd7f
commit cffca055fe

View File

@ -1,10 +1,11 @@
from . import builder, config, exceptions, generator, logging from . import builder, config, exceptions, generator, logging, options
import click import click
import os import os
import sys import sys
__all__ = [] __all__ = []
options.setup()
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)