MCPcopy
hub / github.com/borgbackup/borg / handle_log_event

Method handle_log_event

src/borg/cockpit/app.py:116–129  ·  view source on GitHub ↗

Process a event from BorgRunner.

(self, data: dict)

Source from the content-addressed store, hash-verified

114 self.query_one("#slogan").update_slogan()
115
116 def handle_log_event(self, data: dict):
117 """Process a event from BorgRunner."""
118 msg_type = data.get("type", "log")
119
120 if msg_type == "stream_line":
121 self.total_lines_processed += 1
122 line = data.get("line", "")
123 widget = self.query_one("#standard-log")
124 widget.add_line(line)
125
126 elif msg_type == "process_finished":
127 self.process_running = False
128 rc = data.get("rc", 0)
129 self.query_one("#status").rc = rc

Callers

nothing calls this directly

Calls 2

add_lineMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected