MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / log_event

Function log_event

chirpstack/src/integration/mod.rs:356–371  ·  view source on GitHub ↗
(
    application_id: Uuid,
    vars: &HashMap<String, String>,
    pl: &integration::LogEvent,
)

Source from the content-addressed store, hash-verified

354}
355
356pub async fn log_event(
357 application_id: Uuid,
358 vars: &HashMap<String, String>,
359 pl: &integration::LogEvent,
360) {
361 tokio::spawn({
362 let vars = vars.clone();
363 let pl = pl.clone();
364
365 async move {
366 if let Err(err) = _log_event(application_id, &vars, &pl).await {
367 warn!(application_id = %application_id, error = %err.full(), "Log event error");
368 }
369 }
370 });
371}
372
373async fn _log_event(
374 application_id: Uuid,

Callers 9

log_tx_ack_errorMethod · 0.50
handleFunction · 0.50
validate_micMethod · 0.50
send_uplink_eventMethod · 0.50
validate_micMethod · 0.50

Calls 1

_log_eventFunction · 0.85

Tested by

no test coverage detected