Skip to content

Commit

Permalink
explicitly set logging levels to capture sql
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Mar 18, 2024
1 parent bacc765 commit 5361a1e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def test_link_and_dedupe():
)

handler.log_list.clear()

linker.estimate_u_using_random_sampling(max_pairs=1000)
logging.getLogger("splink").setLevel(1)
linker.estimate_u_using_random_sampling(target_rows=1000)

all_log_messages = "\n".join(log_list)
all_log_messages = re.sub(r"\s+", " ", all_log_messages)
Expand Down Expand Up @@ -231,7 +231,7 @@ def test_link_only_two():
)

log_list.clear()

logging.getLogger("splink").setLevel(1)
linker.estimate_u_using_random_sampling(max_pairs=1000)

all_log_messages = "\n".join(log_list)
Expand Down Expand Up @@ -288,7 +288,7 @@ def test_link_only_three():
)

log_list.clear()

logging.getLogger("splink").setLevel(1)
linker.estimate_u_using_random_sampling(max_pairs=1000)

all_log_messages = "\n".join(log_list)
Expand Down

0 comments on commit 5361a1e

Please sign in to comment.