From 6a13500da4c034b5d4ecb6bb051c37ef5ea1a5c0 Mon Sep 17 00:00:00 2001 From: Arthur Petukhovsky Date: Tue, 28 Sep 2021 21:03:40 +0300 Subject: [PATCH] Fix print in last test --- test_runner/batch_others/test_wal_acceptor.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test_runner/batch_others/test_wal_acceptor.py b/test_runner/batch_others/test_wal_acceptor.py index b5577f28d0..1c2becfa74 100644 --- a/test_runner/batch_others/test_wal_acceptor.py +++ b/test_runner/batch_others/test_wal_acceptor.py @@ -10,6 +10,10 @@ from multiprocessing import Process, Value from fixtures.zenith_fixtures import WalAcceptorFactory, ZenithPageserver, PostgresFactory, PgBin from fixtures.utils import lsn_to_hex, mkdir_if_needed +import logging +import fixtures.log_helper # configures loggers +log = logging.getLogger('root') + pytest_plugins = ("fixtures.zenith_fixtures") @@ -284,10 +288,10 @@ def test_sync_safekeepers(repo_dir: str, pg_bin: PgBin, wa_factory: WalAcceptorF ) lsn_hex = lsn_to_hex(res["inserted_wal"]["end_lsn"]) lsn_after_append.append(lsn_hex) - print(f"safekeeper[{i}] lsn after append: {lsn_hex}") + log.info(f"safekeeper[{i}] lsn after append: {lsn_hex}") # run sync safekeepers lsn_after_sync = pg.sync_safekeepers() - print(f"lsn after sync = {lsn_after_sync}") + log.info(f"lsn after sync = {lsn_after_sync}") assert all(lsn_after_sync == lsn for lsn in lsn_after_append)