This is an automated email from the ASF dual-hosted git repository. brandonwilliams pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
commit ba6a2448c3cc1765add601e4d1ac500a0a75d0bc Author: Brandon Williams <brandonwilli...@apache.org> AuthorDate: Tue Jan 17 15:17:53 2023 -0600 Fix logging in ttl test Patch by brandonwilliams; reviewed by bereng for CASSANDRA-18121 --- ttl_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ttl_test.py b/ttl_test.py index 7416e9c3..96552de2 100644 --- a/ttl_test.py +++ b/ttl_test.py @@ -388,7 +388,7 @@ class TestTTL(Tester): pytest.fail("should throw InvalidRequest") if self.cluster.version() >= '3.0': # client warn only on 3.0+ if policy == 'CAP': - logger.debug("Warning is {}", result.warnings[0]) + logger.debug("Warning is {}".format(result.warnings[0])) assert 'exceeds maximum supported expiration' in result.warnings[0], 'Warning not found' else: assert not result.warnings, "There should be no warnings" @@ -591,7 +591,7 @@ class TestRecoverNegativeExpirationDate(TestHelper): base_dir = os.path.dirname(os.path.abspath(__file__)) corrupt_sstable_dir = os.path.join(base_dir, 'sstables', 'ttl_test', version) table_dir = self.get_table_paths('ttl_table')[0] - logger.debug("Copying sstables from {} into {}", corrupt_sstable_dir, table_dir) + logger.debug("Copying sstables from {} into {}".format(corrupt_sstable_dir, table_dir)) copytree(corrupt_sstable_dir, table_dir) logger.debug("Load corrupted sstable") @@ -609,7 +609,7 @@ class TestRecoverNegativeExpirationDate(TestHelper): reinsert_overflowed_ttl=True, no_validate=True) - logger.debug("Executed offline scrub on {}", str(scrubbed_sstables)) + logger.debug("Executed offline scrub on {}".format(str(scrubbed_sstables))) logger.debug("Starting node again") self.cluster.start() --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org