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 = [
80
80
# Ignore a coverage warning when COVERAGE_CORE=sysmon for Pythons < 3.12.
81
81
" ignore:sys.monitoring isn't available:coverage.exceptions.CoverageWarning" ,
82
82
]
83
- log_cli_level = " DEBUG "
83
+ log_cli_level = " INFO "
84
84
log_cli_date_format = " %H:%M:%S:%f"
85
- log_cli = true
85
+ log_cli = false
86
86
log_cli_format = " %(asctime)s %(levelname)s %(threadName)s: %(message)s"
87
- log_level = " DEBUG "
87
+ log_level = " INFO "
88
88
capture = " yes"
89
89
90
90
[tool .ruff ]
Original file line number Diff line number Diff line change @@ -168,9 +168,13 @@ def find_target_node_and_empty_node(
168
168
169
169
logging .debug (f"All nodes: { all_nodes } " )
170
170
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
+ )
172
174
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
+ )
174
178
175
179
if not nodes_with_no_shards_target_bdb :
176
180
raise ValueError ("All nodes have shards from target database" )
@@ -179,7 +183,9 @@ def find_target_node_and_empty_node(
179
183
raise ValueError ("No nodes with master shards from target database found" )
180
184
181
185
# 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
183
189
target_node = next (iter (master_nodes )).split (":" )[1 ] # node:2 -> 2
184
190
185
191
return target_node , empty_node
You can’t perform that action at this time.
0 commit comments