Browse Source

Fix functional tests logging

Turns out the patch with Git commit hash prefix 13993764
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 prefix 4980f031fe 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
changes/53/303053/7
Assaf Muller 6 years ago
committed by Jakub Libosvar
parent
commit
863b170009
  1. 8
      neutron/db/migration/cli.py
  2. 4
      neutron/tests/etc/neutron.conf

8
neutron/db/migration/cli.py

@ -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

4
neutron/tests/etc/neutron.conf

@ -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…
Cancel
Save