Browse Source

Lower ObjectVersionChecker logging to DEBUG level

The ObjectVersionChecker fixture is logging object
comparison at INFO which in some tests can blow up
the subunit output stream capture parser (see nova
bug 1813147). This change drops the logging level
to DEBUG which can be enabled using the OS_DEBUG
environment variable found in oslotest.

Change-Id: If20663ecad19f18f22172ae489206b42489fd9f6
Closes-Bug: #1815223
tags/1.35.0^2
Matt Riedemann 11 months ago
parent
commit
1fbd1b557a
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      oslo_versionedobjects/fixture.py

+ 3
- 2
oslo_versionedobjects/fixture.py View File

@@ -320,8 +320,9 @@ class ObjectVersionChecker(object):
kwargs = {'version_manifest': manifest} if manifest else {}
for n in range(version[1] + 1):
test_version = '%d.%d' % (version[0], n)
LOG.info('testing obj: %s version: %s' %
(obj_class.obj_name(), test_version))
# Run the test with OS_DEBUG=True to see this.
LOG.debug('testing obj: %s version: %s' %
(obj_class.obj_name(), test_version))
kwargs['target_version'] = test_version
obj_class(*init_args, **init_kwargs).obj_to_primitive(**kwargs)


Loading…
Cancel
Save