Fix functional tests logging
Turns out the patch with Git commit hash prefixchanges/53/303053/713993764
disabled functional tests logging completely. This patch fixes that by moving the neutron-db-manage logging setup from import to the main function. Fixing that, it looks like patch with Git commit hash prefix4980f031fe
turned off DEBUG level logging for functional tests. I changed the tests default logging from INFO to DEBUG to fix that. Closes-Bug: #1567613 Change-Id: If02c18af20a236514409f37fa993224903877a8b
parent
7f1ae6c1b7
commit
863b170009
|
@ -59,10 +59,6 @@ migration_entrypoints = {
|
|||
|
||||
neutron_alembic_ini = os.path.join(os.path.dirname(__file__), 'alembic.ini')
|
||||
|
||||
# Interpret the config file for Python logging.
|
||||
# This line sets up loggers basically.
|
||||
logging_config.fileConfig(neutron_alembic_ini)
|
||||
|
||||
|
||||
VALID_SERVICES = ['fwaas', 'lbaas', 'vpnaas']
|
||||
INSTALLED_SERVICES = [service_ for service_ in VALID_SERVICES
|
||||
|
@ -724,6 +720,10 @@ def get_engine_config():
|
|||
|
||||
|
||||
def main():
|
||||
# Interpret the config file for Python logging.
|
||||
# This line sets up loggers basically.
|
||||
logging_config.fileConfig(neutron_alembic_ini)
|
||||
|
||||
CONF(project='neutron')
|
||||
validate_cli_options()
|
||||
return_val = False
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[DEFAULT]
|
||||
# Show more verbose log output (sets INFO log level output)
|
||||
default_log_levels = neutron=INFO
|
||||
# Show more verbose log output (sets DEBUG log level output)
|
||||
default_log_levels = neutron=DEBUG
|
||||
|
||||
# Show debugging output in logs (sets DEBUG log level output)
|
||||
debug = False
|
||||
|
|
Loading…
Reference in New Issue