YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: reduce log noise ~54% and scrub PII from logs
Louis Beaumontfc830b437378
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex cc3ef2137..5f1914310 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -408,7 +408,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {if (newFramesCount > 0 && !isAtLiveEdge && frames.length > prevFramesLengthRef.current) {// New frames were added at the front, shift our index to compensatesetCurrentIndex(prev => prev + newFramesCount);- console.log(`Adjusted index by +${newFramesCount} to stay on same frame (live edge: ${isAtLiveEdge})`);}prevFramesLengthRef.current = frames.length;@@ -428,7 +427,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {if (debounceTimer) clearTimeout(debounceTimer);debounceTimer = setTimeout(() => {debounceTimer = null;- console.log("Window focused, refreshing timeline...");// Pause any active playbackpausePlayback();@@ -503,7 +501,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {cursor.y >= initialScreenBounds.y + initialScreenBounds.height;if (isOutside) {- console.log("Cursor left screen, hiding timeline");alreadyHidden = true;pausePlayback();commands.closeWindow("Main");@@ -529,7 +526,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {// Helper to navigate to a timestampconst navigateToTimestamp = useCallback(async (targetTimestamp: string) => {- console.log("Navigating to timestamp:", targetTimestamp);const targetDate = new Date(targetTimestamp);if (isNaN(targetDate.getTime())) return;@@ -573,7 +569,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {const unlisten = listen<string>("navigate-to-frame", async (event) => {const raw = String(event.payload).trim();- console.log("Navigating to frame:", raw);if (!raw) return;// Validate frame ID: must be a positive integer@@ -651,7 +646,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {isSameDay(new Date(frame.timestamp), targetDate));if (isSameDay(targetDate, currentDate) && hasFramesForTargetDate) {- console.log("[pendingNavigation] Frames loaded for target date, jumping to closest frame:", targetDate.toISOString());// Find the closest frame to the target timestamp — only consider// frames from the target date (old-date frames may still be in@@ -676,7 +670,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {setCurrentFrame(frames[snapped]);// Use HTTP JPEG fallback for this first frame (skip slow video seek)setSearchNavFrame(true);- console.log("[pendingNavigation] Jumped to frame index:", snapped);// Clear pending navigation and UI statependingNavigationRef.current = null;@@ -1334,8 +1327,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {return;}- console.log(`[jumpToTime] Jumping to index ${closestIndex}, diff=${Math.round(closestDiff / 1000)}s from target`);-// Update cursor position, snap to matching deviceconst snapped = snapToDevice(closestIndex);setCurrentIndex(snapped);@@ -1350,8 +1341,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {isNavigatingRef.current = true;setIsNavigating(true);- console.log("[navigateDirectToDate] called with:", targetDate.toISOString());-dateChangesRef.current += 1;posthog.capture("timeline_date_changed", {from_date: currentDate.toISOString(),@@ -1376,8 +1365,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {setCurrentIndex(0);setCurrentDate(targetDate);- console.log("[navigateDirectToDate] Navigation initiated, narrow fetch sent");-// Timeout: if frames haven't arrived after 10s, retry with full-day fetch// instead of giving up entirelysetTimeout(() => {@@ -1415,8 +1402,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {// Show loading feedback IMMEDIATELY (before any HTTP calls)setSeekingTimestamp(newDate.toISOString());- console.log("[handleDateChange] called with:", newDate.toISOString(), "currentDate:", currentDate.toISOString());-try {// For today, skip any HTTP checks — hot cache guarantees framesconst isToday = isSameDay(newDate, new Date());@@ -1430,7 +1415,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {const nearest = await findNearestDateWithFrames(newDate, direction, MAX_DATE_RETRIES);if (!nearest) {- console.log("[handleDateChange] No frames found within", MAX_DATE_RETRIES, "days", direction);isNavigatingRef.current = false;setIsNavigating(false);setSeekingTimestamp(null);@@ -1438,12 +1422,10 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {}targetDate = nearest;- console.log("[handleDateChange] Nearest date with frames:", targetDate.toISOString());}// Already on this day - jump to first frame of the dayif (isSameDay(targetDate, currentDate)) {- console.log("[handleDateChange] Same day, jumping to first frame of day");const targetDayStart = startOfDay(targetDate);const targetDayEnd = endOfDay(targetDate);const targetIndex = frames.findIndex((frame) => {@@ -1463,7 +1445,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {// Don't go before start dateif (isAfter(startAndEndDates.start, targetDate)) {- console.log("[handleDateChange] Before start date, stopping");isNavigatingRef.current = false;setIsNavigating(false);setSeekingTimestamp(null);@@ -1495,7 +1476,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {// DON'T try to find frames here - they won't be loaded yet!// The pending navigation effect handles jumping to the// correct frame once the new date's frames arrive via WebSocket.- console.log("[handleDateChange] Navigation initiated, waiting for frames to load...");// Safety timeout: clear navigation state if frames don't arrive within 10ssetTimeout(() => {diff --git a/apps/screenpipe-app-tauri/components/rewind/video.tsx b/apps/screenpipe-app-tauri/components/rewind/video.tsxindex de64eb81d..d25bb4f21 100644--- a/apps/screenpipe-app-tauri/components/rewind/video.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/video.tsx@@ -49,9 +49,7 @@ export const VideoComponent = memo(function VideoComponent({async function loadMedia(attempt: number = 0) {try {- console.log(`Loading media (attempt ${attempt + 1}/${MAX_RETRIES + 1}):`, filePath);const sanitizedPath = sanitizeFilePath(filePath);- console.log("Sanitized path:", sanitizedPath);if (!sanitizedPath) {throw new Error("Invalid file path");}@@ -83,7 +81,6 @@ export const VideoComponent = memo(function VideoComponent({setMediaSrc(blobUrl);setError(null);setRetryCount(0);- console.log("Media loaded successfully:", filePath);} catch (error) {if (isCancelled) return;@@ -93,7 +90,6 @@ export const VideoComponent = memo(function VideoComponent({// Retry with exponential backoff for transient errorsif (attempt < MAX_RETRIES) {const delay = INITIAL_RETRY_DELAY * Math.pow(2, attempt);- console.log(`Retrying in ${delay}ms...`);setRetryCount(attempt + 1);retryTimeout = setTimeout(() => {if (!isCancelled) {diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsxindex 0dcf14f8a..46a114d93 100644--- a/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx+++ b/apps/screenpipe-app-tauri/lib/hooks/use-timeline-store.tsx@@ -144,7 +144,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({error: null,});- console.log(`Loaded ${cached.frames.length} frames from cache (isToday: ${isToday})`);}} catch (error) {console.warn("Failed to load from cache:", error);@@ -378,11 +377,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({loadingProgress: { loaded: currentFrames.length, isStreaming: true },isConnected: true,});- if (hasLoggedTimelineDisconnect) {- console.log("timeline WebSocket reconnected");- } else {- console.log("timeline WebSocket connected");- }hasLoggedTimelineDisconnect = false;// After successful connection/reconnection, trigger a fetch for current date@@ -527,7 +521,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({ws.onclose = () => {// Ignore events from old WebSocket instances (e.g., when refresh button is clicked)if (thisWsId !== currentWsId) {- console.log("Ignoring onclose from old WebSocket instance");return;}@@ -575,12 +568,10 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({const requestKey = `${startTime.toISOString()}_${endTime.toISOString()}`;if (sentRequests.has(requestKey)) {- console.log("Request already sent, skipping...");return;}if (websocket && websocket.readyState === WebSocket.OPEN) {- console.log("sending request for", requestKey);websocket.send(JSON.stringify({start_time: startTime.toISOString(),@@ -604,7 +595,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({// Retry if no frames arrived (or still waiting for date swap to complete)if ((currentFrames.length === 0 || stillSwapping) && requestRetryCount < MAX_REQUEST_RETRIES) {requestRetryCount++;- console.log(`No frames received, retrying (${requestRetryCount}/${MAX_REQUEST_RETRIES})...`);// Clear this date from sentRequests to allow retryset((state) => {@@ -616,7 +606,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({// Retry the requestget().fetchTimeRange(startTime, endTime);} else if ((currentFrames.length === 0 || stillSwapping) && requestRetryCount >= MAX_REQUEST_RETRIES) {- console.log("Max retries reached, no frames available");set({isLoading: false,message: "No data available for this time range"@@ -644,7 +633,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({const requestKey = `${nextDay.toISOString()}_${endTime.toISOString()}`;if (sentRequests.has(requestKey)) {- console.log("Request already sent, skipping...");return;}@@ -693,8 +681,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({};});- console.log("Window focused, cleared sentRequests for:", todayStr);-// If WebSocket is open, fetch today's dataif (websocket && websocket.readyState === WebSocket.OPEN) {const startTime = new Date(today);@@ -704,7 +690,6 @@ export const useTimelineStore = create<TimelineState>((set, get) => ({fetchTimeRange(startTime, endTime);} else {// WebSocket is closed, reconnect (which will fetch on open)- console.log("WebSocket not open, reconnecting...");connectWebSocket();}},diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 13af728a4..8561a3eb8 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1605,12 +1605,12 @@ async fn main() {let file_layer = tracing_subscriber::fmt::layer().with_writer(file_appender).with_ansi(false)- .with_filter(EnvFilter::new("info,hyper=error,tower_http=error"));+ .with_filter(EnvFilter::new("info,hyper=error,tower_http=error,whisper_rs=warn"));// Create a custom layer for console logginglet console_layer = tracing_subscriber::fmt::layer().with_writer(std::io::stdout)- .with_filter(EnvFilter::new("info,hyper=error,tower_http=error"));+ .with_filter(EnvFilter::new("info,hyper=error,tower_http=error,whisper_rs=warn"));// Initialize the tracing subscriber with both layers + optional Sentry layer// The Sentry layer captures error!() and warn!() events (not just panics)diff --git a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rsindex 434e51994..44212343a 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs@@ -5,7 +5,7 @@use serde::{Deserialize, Serialize};use specta::Type;#[allow(unused_imports)] // used on macOS-use tracing::{info, warn, error};+use tracing::{debug, info, warn, error};#[derive(Serialize, Deserialize, Type, Clone)]#[serde(rename_all = "camelCase")]@@ -520,7 +520,7 @@ fn run_self_detached(flag: &str) -> bool {}let _ = Command::new("launchctl").args(["remove", &label]).output();- warn!("self detached {} timed out", flag);+ debug!("self detached {} timed out", flag);false}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rsindex 22f87c622..e05644fc9 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs@@ -95,7 +95,7 @@ pub async fn auto_start_scheduler(state: &SuggestionsState) {// Fetch activity & generate suggestionsmatch generate_suggestions().await {Ok(cached) => {- info!(+ debug!("suggestions scheduler: generated {} suggestions (mode={}, ai={})",cached.suggestions.len(),cached.mode,@@ -686,7 +686,7 @@ async fn build_activity_context(used += line.len() + 1;parts.push(line);}- info!("suggestions: using accessibility data ({} snippets)", snippets.len());+ debug!("suggestions: using accessibility data ({} snippets)", snippets.len());}} else {let snippets = fetch_ocr_snippets().await;diff --git a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs b/apps/screenpipe-app-tauri/src-tauri/src/updates.rsindex b52e5b9f8..6c2ff4c0f 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/updates.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/updates.rs@@ -8,7 +8,7 @@ use crate::tray::QUIT_REQUESTED;use crate::RecordingState;use anyhow::Error;use dark_light::Mode;-use log::{error, info, warn};+use log::{debug, error, info, warn};use serde_json;use std::sync::atomic::{AtomicBool, Ordering};use std::sync::Arc;@@ -161,7 +161,7 @@ impl UpdatesManager {// Handle source/community buildsif is_source_build(&self.app) {- info!("source build detected, auto-updates not available");+ debug!("source build detected, auto-updates not available");if show_dialog {self.show_source_build_dialog().await?;}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rsindex fbc353636..c17722f77 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/window_api.rs@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};use tauri::{AppHandle, Emitter, LogicalSize, Manager, Size, WebviewUrl, WebviewWindow, WebviewWindowBuilder, Wry};#[cfg(target_os = "macos")]use tauri_nspanel::ManagerExt;-use tracing::{error, info};+use tracing::{debug, error, info};#[cfg(target_os = "macos")]use tauri_nspanel::WebviewWindowExt;@@ -975,7 +975,7 @@ impl ShowRewindWindow {return Ok(window);}- info!("showing window: {:?} (not found)", id.label());+ debug!("showing window: {:?} (not found)", id.label());let window = match self {diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rsindex efc4a2b1a..29579872f 100644--- a/crates/screenpipe-audio/src/audio_manager/manager.rs+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs@@ -490,7 +490,7 @@ impl AudioManager {Ok(tokio::spawn(async move {while let Ok(audio) = whisper_receiver.recv() {- info!("Received audio from device: {:?}", audio.device.name);+ debug!("received audio from device: {:?}", audio.device.name);// Audio-based call detection: update meeting detector with speech activityif let Some(ref meeting) = meeting_detector {diff --git a/crates/screenpipe-audio/src/audio_manager/reconciliation.rs b/crates/screenpipe-audio/src/audio_manager/reconciliation.rsindex 7a964e7ce..f7d3f81c1 100644--- a/crates/screenpipe-audio/src/audio_manager/reconciliation.rs+++ b/crates/screenpipe-audio/src/audio_manager/reconciliation.rs@@ -7,7 +7,7 @@ use std::sync::Arc;use screenpipe_core::Language;use screenpipe_db::{DatabaseManager, UntranscribedChunk};-use tracing::{debug, error, info, warn};+use tracing::{debug, error, warn};use whisper_rs::WhisperContext;use crate::core::engine::AudioTranscriptionEngine;@@ -47,14 +47,14 @@ pub async fn reconcile_untranscribed(return 0;}- info!(+ debug!("reconciliation: found {} untranscribed audio chunks",chunks.len());// Group consecutive chunks by device for batched transcription.let batches = group_chunks_by_device(&chunks);- info!(+ debug!("reconciliation: grouped into {} batches (max {}×30s each)",batches.len(),MAX_BATCH_CHUNKS@@ -74,8 +74,8 @@ pub async fn reconcile_untranscribed(let path = Path::new(&chunk.file_path);if !path.exists() {warn!(- "reconciliation: audio file missing, skipping chunk {}: {}",- chunk.id, chunk.file_path+ "reconciliation: audio file missing, skipping chunk {}",+ chunk.id);continue;}diff --git a/crates/screenpipe-audio/src/speaker/prepare_segments.rs b/crates/screenpipe-audio/src/speaker/prepare_segments.rsindex fbc60cb49..8628be144 100644--- a/crates/screenpipe-audio/src/speaker/prepare_segments.rs+++ b/crates/screenpipe-audio/src/speaker/prepare_segments.rs@@ -6,7 +6,7 @@ use crate::{use anyhow::Result;use std::{path::PathBuf, sync::Arc, sync::Mutex as StdMutex};use tokio::sync::Mutex;-use tracing::{error, info};+use tracing::{debug, error};use vad_rs::VadStatus;use super::{@@ -75,7 +75,7 @@ pub async fn prepare_segments(}let speech_ratio = speech_frame_count as f32 / total_frames as f32;- info!(+ debug!("device: {}, speech ratio: {}, min_speech_ratio: {}, audio_frames: {}, speech_frames: {}",device,speech_ratio,diff --git a/crates/screenpipe-audio/src/transcription/handle_new_transcript.rs b/crates/screenpipe-audio/src/transcription/handle_new_transcript.rsindex 08732cfca..a5d09a581 100644--- a/crates/screenpipe-audio/src/transcription/handle_new_transcript.rs+++ b/crates/screenpipe-audio/src/transcription/handle_new_transcript.rs@@ -9,7 +9,7 @@ use crate::{transcription::process_transcription_result,};use screenpipe_db::DatabaseManager;-use tracing::{error, info};+use tracing::{debug, error, info};use super::TranscriptionResult;@@ -65,7 +65,7 @@ pub async fn handle_new_transcript(metrics.record_transcription_completed();}- info!(+ debug!("device {} received transcription ({} chars)",transcription.input.device,transcription@@ -158,7 +158,7 @@ pub async fn handle_new_transcript(metrics.record_db_insert(word_count as u64);if was_trimmed {- info!(+ debug!("device {} inserted trimmed transcript ({} words)",device_name, word_count);diff --git a/crates/screenpipe-audio/src/transcription/transcription_result.rs b/crates/screenpipe-audio/src/transcription/transcription_result.rsindex 4e899165f..3233e4c5d 100644--- a/crates/screenpipe-audio/src/transcription/transcription_result.rs+++ b/crates/screenpipe-audio/src/transcription/transcription_result.rs@@ -7,7 +7,7 @@ use std::sync::Arc;use chrono::{DateTime, Utc};use screenpipe_core::pii_removal::remove_pii;use screenpipe_db::{DatabaseManager, Speaker};-use tracing::{debug, error, info};+use tracing::{debug, error};use crate::core::engine::AudioTranscriptionEngine;@@ -79,7 +79,7 @@ pub async fn process_transcription_result(let speaker = get_or_create_speaker_from_embedding(db, &result.speaker_embedding).await?;- info!("Detected speaker: {:?}", speaker);+ debug!("detected speaker id={}", speaker.id);let raw_transcription = result.transcription.unwrap();// Apply PII removal if enabled@@ -92,9 +92,9 @@ pub async fn process_transcription_result(let speaker_id = Some(speaker.id);let mut chunk_id: Option<i64> = None;- info!(- "device {} inserting audio chunk: {:?}",- result.input.device, result.path+ debug!(+ "device {} inserting audio chunk",+ result.input.device);if let Some(id) = previous_transcript_id {if let Some(prev_transcript) = previous_transcript {diff --git a/crates/screenpipe-audio/src/transcription/whisper/model.rs b/crates/screenpipe-audio/src/transcription/whisper/model.rsindex df54fe77f..d398e04ea 100644--- a/crates/screenpipe-audio/src/transcription/whisper/model.rs+++ b/crates/screenpipe-audio/src/transcription/whisper/model.rs@@ -2,7 +2,7 @@ use crate::core::engine::AudioTranscriptionEngine;use anyhow::Result;use hf_hub::{api::sync::Api, Cache, Repo, RepoType};use std::{path::PathBuf, sync::Arc};-use tracing::info;+use tracing::{debug, info};use whisper_rs::WhisperContextParameters;pub fn download_whisper_model(engine: Arc<AudioTranscriptionEngine>) -> Result<PathBuf> {@@ -31,7 +31,7 @@ pub fn download_whisper_model(engine: Arc<AudioTranscriptionEngine>) -> Result<Plet cache_repo = cache.repo(repo.clone());if let Some(model_path) = cache_repo.get(model_name) {- info!("model found at {:?}", model_path);+ debug!("model found at {:?}", model_path);return Ok(model_path);}diff --git a/crates/screenpipe-server/src/analytics.rs b/crates/screenpipe-server/src/analytics.rsindex f0ada9c84..ce876288f 100644--- a/crates/screenpipe-server/src/analytics.rs+++ b/crates/screenpipe-server/src/analytics.rs@@ -3,7 +3,7 @@ use reqwest::Client;use serde_json::{json, Value};use std::env;use std::sync::atomic::{AtomicBool, Ordering};-use tracing::{debug, error, trace};+use tracing::{debug, trace};#[cfg(target_os = "macos")]use sysinfo::{System, SystemExt};@@ -87,7 +87,7 @@ pub async fn capture_event(event: &str, properties: Value) {.send().await{- error!("Failed to send analytics event: {}", e);+ debug!("failed to send analytics event: {}", e);}}diff --git a/crates/screenpipe-server/src/resource_monitor.rs b/crates/screenpipe-server/src/resource_monitor.rsindex be146f6ba..d2704b032 100644--- a/crates/screenpipe-server/src/resource_monitor.rs+++ b/crates/screenpipe-server/src/resource_monitor.rs@@ -220,7 +220,7 @@ impl ResourceMonitor {total_virtual_memory_gb,total_cpu);- info!("{}", log_message);+ debug!("{}", log_message);// Log to fileself.log_to_file(metrics).await;@@ -290,7 +290,7 @@ impl ResourceMonitor {total_virtual_memory_gb,total_cpu);- info!("{}", log_message);+ debug!("{}", log_message);// Log to fileself.log_to_file(metrics).await;diff --git a/crates/screenpipe-server/src/routes/search.rs b/crates/screenpipe-server/src/routes/search.rsindex fde91411b..d9b7369e9 100644--- a/crates/screenpipe-server/src/routes/search.rs+++ b/crates/screenpipe-server/src/routes/search.rs@@ -21,7 +21,7 @@ use std::{str::FromStr,sync::Arc,};-use tracing::{debug, error, info};+use tracing::{debug, error};use crate::analytics;use crate::server::AppState;@@ -127,8 +127,8 @@ pub(crate) async fn search(Query(query): Query<SearchQuery>,State(state): State<Arc<AppState>>,) -> Result<JsonResponse<SearchResponse>, (StatusCode, JsonResponse<serde_json::Value>)> {- info!(- "received search request: query='{}', content_type={:?}, limit={}, offset={}, start_time={:?}, end_time={:?}, app_name={:?}, window_name={:?}, min_length={:?}, max_length={:?}, speaker_ids={:?}, frame_name={:?}, browser_url={:?}, focused={:?}, speaker_name={:?}",+ debug!(+ "received search request: query='{}', content_type={:?}, limit={}, offset={}, start_time={:?}, end_time={:?}, app_name={:?}, window_name={:?}, min_length={:?}, max_length={:?}, speaker_ids={:?}, frame_name={:?}, browser_url={:?}, focused={:?}",query.q.as_deref().unwrap_or(""),query.content_type,query.pagination.limit,@@ -143,7 +143,6 @@ pub(crate) async fn search(query.frame_name,query.browser_url,query.focused,- query.speaker_name,);// Check cache first (only for queries without frame extraction)@@ -308,7 +307,7 @@ pub(crate) async fn search(}}- info!("search completed: found {} results", total);+ debug!("search completed: found {} results", total);// Track search analyticsanalytics::capture_event_nonblocking(diff --git a/crates/screenpipe-server/src/ui_recorder.rs b/crates/screenpipe-server/src/ui_recorder.rsindex 1e7f186a9..185a9ae17 100644--- a/crates/screenpipe-server/src/ui_recorder.rs+++ b/crates/screenpipe-server/src/ui_recorder.rs@@ -489,7 +489,7 @@ impl TreeWalkerMetrics {let avg_nodes = self.total_nodes / self.walks_total.max(1);let truncation_rate = self.walks_truncated as f64 / self.walks_total as f64;let truncation_pct = (truncation_rate * 100.0) as u64;- info!(+ debug!("tree walker stats (last 60s): walks={}, stored={}, deduped={}, empty={}, errors={}, immediate={}, avg_walk={}ms, max_walk={}ms, total_chars={}, avg_nodes={}, max_depth={}, truncated={}% ({} timeout, {} max_nodes)",self.walks_total, self.walks_stored, self.walks_deduped,self.walks_empty, self.walks_error, self.walks_immediate,