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
release-app revert audio restart, remove log crate
Louis Beaumontcd7c9d252c6e
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 21cde981f..11451bcc5 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.41.13"+version = "0.41.14"description = ""authors = ["you"]license = ""diff --git a/screenpipe-audio/src/audio_manager/device_monitor.rs b/screenpipe-audio/src/audio_manager/device_monitor.rsindex bb8fababd..4a6ee0147 100644--- a/screenpipe-audio/src/audio_manager/device_monitor.rs+++ b/screenpipe-audio/src/audio_manager/device_monitor.rs@@ -52,19 +52,8 @@ pub async fn start_device_monitor({info!("Device {device_name} disconnected");- // we try to restart the device-let _ = audio_manager.stop_device(device_name).await;- // disconnected_devices.insert(device_name.clone());- match audio_manager.start_device(&device).await {- Ok(()) => {- let _ = audio_manager.stop_device(device_name).await;- disconnected_devices.insert(device_name.clone());- }- Err(e) => {- error!("restarting device {device_name} failed: {e}");- }- }+ disconnected_devices.insert(device_name.clone());} else {if audio_manager.status().await != AudioManagerStatus::Running {break;diff --git a/screenpipe-vision/Cargo.toml b/screenpipe-vision/Cargo.tomlindex 4f06a3409..50140fcb6 100644--- a/screenpipe-vision/Cargo.toml+++ b/screenpipe-vision/Cargo.toml@@ -24,12 +24,8 @@ rusty-tesseract = { git = "https://github.com/louis030195/rusty-tesseract.git",anyhow = "1.0.86"-# Log-log = { workspace = true }-image-compare = "0.4.1"clap = { version = "4.0", features = ["derive"] }-# tokio = { version = "1", features = ["full"] }# Integrationsscreenpipe-integrations = { path = "../screenpipe-integrations" }diff --git a/screenpipe-vision/src/apple.rs b/screenpipe-vision/src/apple.rsindex dcf1c62d7..57743c1c6 100644--- a/screenpipe-vision/src/apple.rs+++ b/screenpipe-vision/src/apple.rs@@ -6,7 +6,7 @@ use cidre::{};use image::DynamicImage;use image::GenericImageView;-use log::error;+use tracing::error;use screenpipe_core::Language;use serde::{Deserialize, Serialize};use std::collections::HashMap;diff --git a/screenpipe-vision/src/capture_screenshot_by_window.rs b/screenpipe-vision/src/capture_screenshot_by_window.rsindex 8c72ee87b..c287c8970 100644--- a/screenpipe-vision/src/capture_screenshot_by_window.rs+++ b/screenpipe-vision/src/capture_screenshot_by_window.rs@@ -1,5 +1,5 @@use image::DynamicImage;-use log::error;+use tracing::error;use once_cell::sync::Lazy;use std::collections::HashSet;use std::error::Error;diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rsindex 81ef3231a..b749ac428 100644--- a/screenpipe-vision/src/core.rs+++ b/screenpipe-vision/src/core.rs@@ -13,7 +13,7 @@ use anyhow::Result;use base64::{engine::general_purpose, Engine as _};use image::codecs::jpeg::JpegEncoder;use image::DynamicImage;-use log::{debug, error, warn};+use tracing::{debug, error, warn};use screenpipe_core::Language;use screenpipe_integrations::unstructured_ocr::perform_ocr_cloud;use serde::Deserialize;@@ -164,7 +164,7 @@ pub async fn continuous_capture(match capture_screenshot(&monitor, &window_filters, capture_unfocused_windows).await {Ok(result) => result,Err(e) => {- error!("Error capturing screenshot: {}", e);+ debug!("error capturing screenshot: {}", e);sleep(Duration::from_secs(1)).await;continue;}diff --git a/screenpipe-vision/src/run_ui_monitoring_macos.rs b/screenpipe-vision/src/run_ui_monitoring_macos.rsindex 895b3963d..03cd73993 100644--- a/screenpipe-vision/src/run_ui_monitoring_macos.rs+++ b/screenpipe-vision/src/run_ui_monitoring_macos.rs@@ -1,6 +1,6 @@use crate::UIFrame;use anyhow::Result;-use log::{debug, error, info, warn};+use tracing::{debug, error, info, warn};use screenpipe_events::send_event;use std::fs;use std::io;diff --git a/screenpipe-vision/src/utils.rs b/screenpipe-vision/src/utils.rsindex 3ff507712..b8f646e4e 100644--- a/screenpipe-vision/src/utils.rs+++ b/screenpipe-vision/src/utils.rs@@ -6,7 +6,7 @@ use crate::custom_ocr::CustomOcrConfig;use crate::monitor::SafeMonitor;use image::DynamicImage;use image_compare::{Algorithm, Metric, Similarity};-use log::{debug, error, warn};+use tracing::{debug, warn};use screenpipe_db::CustomOcrConfig as DBCustomOcrConfig;use std::hash::{DefaultHasher, Hash, Hasher};use std::time::{Duration, Instant};@@ -80,8 +80,8 @@ pub async fn capture_screenshot(// info!("Starting screenshot capture for monitor: {:?}", monitor);let capture_start = Instant::now();let image = monitor.capture_image().await.map_err(|e| {- error!("Failed to capture monitor image: {}", e);- anyhow::anyhow!("Monitor capture failed")+ debug!("failed to capture monitor image: {}", e);+ anyhow::anyhow!("monitor capture failed")})?;let image_hash = calculate_hash(&image);let capture_duration = capture_start.elapsed();