Method
log_event
(
&self,
_vars: &HashMap<String, String>,
pl: &integration::LogEvent,
)
Source from the content-addressed store, hash-verified
| 73 | } |
| 74 | |
| 75 | async fn log_event( |
| 76 | &self, |
| 77 | _vars: &HashMap<String, String>, |
| 78 | pl: &integration::LogEvent, |
| 79 | ) -> Result<()> { |
| 80 | let dev_info = pl |
| 81 | .device_info |
| 82 | .as_ref() |
| 83 | .ok_or_else(|| anyhow!("device_info is None"))?; |
| 84 | let b = pl.encode_to_vec(); |
| 85 | stream::event::log_event_for_device("log", &dev_info.dev_eui, &b).await |
| 86 | } |
| 87 | |
| 88 | async fn status_event( |
| 89 | &self, |