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
This commit is contained in:
Matt Riedemann 2019-02-08 12:32:53 -05:00
parent 2847ec2f58
commit 1fbd1b557a
1 changed files with 3 additions and 2 deletions

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)