(self, node_names: list[tuple[int, str]])
| 185 | |
| 186 | class StatsMonitor: |
| 187 | def __init__(self, node_names: list[tuple[int, str]]) -> None: |
| 188 | self.layout = Layout(name="root") |
| 189 | if len(node_names) > 0: |
| 190 | ratio = 2 |
| 191 | else: |
| 192 | ratio = 1 |
| 193 | self.layout.split( |
| 194 | Layout(name="monitoring", ratio=ratio), |
| 195 | Layout(name="logs"), |
| 196 | ) |
| 197 | self.layout["monitoring"].update("") |
| 198 | console = ConsolePrintingToBuffer() |
| 199 | self.handler = RichHandler(console=console, show_path=False) |
| 200 | self.layout["logs"].update(LogsOutput(console)) |
| 201 | self.node_names = node_names |
| 202 | |
| 203 | def get_logging_handler(self) -> RichHandler: |
| 204 | return self.handler |
nothing calls this directly
no test coverage detected