checkpoint

This commit is contained in:
John Smith
2022-09-06 18:59:41 -04:00
parent ca6c616d66
commit a12d8da6d1
9 changed files with 103 additions and 10 deletions

View File

@@ -332,9 +332,16 @@ change_log_level - change the log level for a tracing layer
}
pub fn update_log(&mut self, log: veilid_core::VeilidStateLog) {
self.inner()
.ui
.add_node_event(format!("{}: {}", log.log_level, log.message));
self.inner().ui.add_node_event(format!(
"{}: {}{}",
log.log_level,
log.message,
if let Some(bt) = log.backtrace {
format!("\nBacktrace:\n{}", bt);
} else {
"".to_owned()
}
));
}
pub fn update_shutdown(&mut self) {