MCPcopy Create free account
hub / github.com/Botloader/botloader / handle_console_log

Method handle_console_log

components/scheduler/src/integration_testing.rs:45–60  ·  view source on GitHub ↗
(&self, entry: LogEntry)

Source from the content-addressed store, hash-verified

43 }
44
45 fn handle_console_log(&self, entry: LogEntry) {
46 if let Some(payload) = entry.message.strip_prefix("INTEGRATION_TEST:") {
47 let decoded: IntegrationTestMessage = serde_json::from_str(payload).unwrap();
48 self.handle_ig_test_message(entry, decoded);
49 } else {
50 info!(
51 "CONSOLELOG: {}: {}",
52 entry
53 .script_context
54 .as_ref()
55 .map(|v| v.to_string())
56 .unwrap_or_default(),
57 entry.message
58 );
59 }
60 }
61
62 fn handle_ig_test_message(&self, _entry: LogEntry, msg: IntegrationTestMessage) {
63 match msg {

Callers 1

handle_entryMethod · 0.80

Calls 1

Tested by

no test coverage detected