Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

remove frecency poller log (#1277)

Sean Aye347b71e0dad2
diff --git a/rust/cloud-storage/frecency/src/domain/services.rs b/rust/cloud-storage/frecency/src/domain/services.rs
index b1a3af3c32..183d93331c 100644
--- a/rust/cloud-storage/frecency/src/domain/services.rs
+++ b/rust/cloud-storage/frecency/src/domain/services.rs
@@ -13,6 +13,7 @@ use chrono::{DateTime, Utc};
use macro_user_id::cowlike::CowLike;
use std::{collections::HashMap, sync::Arc};
use tokio::task::JoinHandle;
+use tracing::Level;
/// concrete struct which implements [EventIngestorService]
#[derive(Clone)]
@@ -173,7 +174,7 @@ where
anyhow::Error: From<S::Err>,
T: TimeGetter,
{
- #[tracing::instrument(err, skip(self))]
+ #[tracing::instrument(err(level = Level::WARN), skip(self))]
async fn append_events_to_aggregate(&self) -> Result<EventAggregationStats, anyhow::Error> {
let events: Vec<_> = self.event_storage.get_unprocessed_events().await?;
diff --git a/rust/cloud-storage/frecency/src/inbound/polling_aggregator.rs b/rust/cloud-storage/frecency/src/inbound/polling_aggregator.rs
index 158d80132c..ebd624cc88 100644
--- a/rust/cloud-storage/frecency/src/inbound/polling_aggregator.rs
+++ b/rust/cloud-storage/frecency/src/inbound/polling_aggregator.rs
@@ -1,8 +1,7 @@
//! The polling aggregator defines a worker process for updating frecency aggregation records in the background
-use std::time::Duration;
-
use crate::domain::{models::EventAggregationStats, ports::PullEventAggregatorService};
+use std::time::Duration;
/// Stats about the current state of the background worker
#[derive(Debug, Clone, Copy, Default)]