mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 17:58:27 +02:00
Better analytics error log
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
use std::fmt::Display;
|
use std::fmt::Display;
|
||||||
|
|
||||||
use log::{debug, warn};
|
use log::{debug, info, warn};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
use sqlx::types::JsonValue;
|
use sqlx::types::JsonValue;
|
||||||
@@ -194,10 +194,7 @@ pub async fn track_event(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Err(e) = req.send().await {
|
if let Err(e) = req.send().await {
|
||||||
warn!(
|
info!("Error sending analytics event: {}", e);
|
||||||
"Error sending analytics event: {} {} {} {:?}",
|
|
||||||
e, event, attributes_json, params,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user