File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ filterwarnings = [
8080 # Ignore a coverage warning when COVERAGE_CORE=sysmon for Pythons < 3.12.
8181 " ignore:sys.monitoring isn't available:coverage.exceptions.CoverageWarning" ,
8282]
83- log_cli_level = " DEBUG "
83+ log_cli_level = " INFO "
8484log_cli_date_format = " %H:%M:%S:%f"
85- log_cli = true
85+ log_cli = false
8686log_cli_format = " %(asctime)s %(levelname)s %(threadName)s: %(message)s"
87- log_level = " DEBUG "
87+ log_level = " INFO "
8888capture = " yes"
8989
9090[tool .ruff ]
Original file line number Diff line number Diff line change @@ -168,9 +168,13 @@ def find_target_node_and_empty_node(
168168
169169 logging .debug (f"All nodes: { all_nodes } " )
170170 logging .debug (f"Nodes with shards from any database: { nodes_with_any_shards } " )
171- logging .debug (f"Nodes with target database shards: { nodes_with_target_db_shards } " )
171+ logging .debug (
172+ f"Nodes with target database shards: { nodes_with_target_db_shards } "
173+ )
172174 logging .debug (f"Master nodes (target database only): { master_nodes } " )
173- logging .debug (f"Nodes with no shards from target database: { nodes_with_no_shards_target_bdb } " )
175+ logging .debug (
176+ f"Nodes with no shards from target database: { nodes_with_no_shards_target_bdb } "
177+ )
174178
175179 if not nodes_with_no_shards_target_bdb :
176180 raise ValueError ("All nodes have shards from target database" )
@@ -179,7 +183,9 @@ def find_target_node_and_empty_node(
179183 raise ValueError ("No nodes with master shards from target database found" )
180184
181185 # Return the first available empty node and master node (numeric part only)
182- empty_node = next (iter (nodes_with_no_shards_target_bdb )).split (":" )[1 ] # node:1 -> 1
186+ empty_node = next (iter (nodes_with_no_shards_target_bdb )).split (":" )[
187+ 1
188+ ] # node:1 -> 1
183189 target_node = next (iter (master_nodes )).split (":" )[1 ] # node:2 -> 2
184190
185191 return target_node , empty_node
You can’t perform that action at this time.
0 commit comments