387ce13aa1
From the docs for LogRecord.message [1], > This is set when Formatter.format() is invoked. Apparently we may find ourselves in a situation [2] where that never happens? Really weird that it failed *midway* through the test though; maybe some concurrent test removed all formatters? ERROR: test_known_bad_ec_config (test.unit.common.test_storage_policy.TestStoragePolicies) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../mock/mock.py", line 1305, in patched return func(*args, **keywargs) File ".../test/unit/common/test_storage_policy.py", line 688, in test_known_bad_ec_config self.assertIn(msg, records[0].message) AttributeError: 'LogRecord' object has no attribute 'message' [1] https://docs.python.org/2/library/logging.html#logrecord-attributes [2] http://logs.openstack.org/59/460359/1/check/gate-swift-tox-xfs-tmp-py27-ubuntu-xenial/5ecc2cb/console.html#_2017-04-27_01_06_43_346096 Change-Id: I8f5ac0ec1195a233f14edc0126de1d1cea7a6e2f |
||
---|---|---|
.. | ||
middleware | ||
ring | ||
__init__.py | ||
corrupted_example.db | ||
malformed_example.db | ||
malformed_schema_example.db | ||
test_base_storage_server.py | ||
test_bufferedhttp.py | ||
test_constraints.py | ||
test_container_sync_realms.py | ||
test_daemon.py | ||
test_db_replicator.py | ||
test_db.py | ||
test_direct_client.py | ||
test_exceptions.py | ||
test_header_key_dict.py | ||
test_internal_client.py | ||
test_linkat.py | ||
test_manager.py | ||
test_memcached.py | ||
test_request_helpers.py | ||
test_splice.py | ||
test_storage_policy.py | ||
test_swob.py | ||
test_utils.py | ||
test_wsgi.py |