Skip to content

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

fix: log issue

Louis Beaumont500c8fc3e658
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 4ddc1c062..4d887b473 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.15.3"
+version = "0.15.4"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-server/benches/db_benchmarks.rs b/screenpipe-server/benches/db_benchmarks.rs
index 7b0333d2a..6fd02d359 100644
--- a/screenpipe-server/benches/db_benchmarks.rs
+++ b/screenpipe-server/benches/db_benchmarks.rs
@@ -3,7 +3,7 @@
use criterion::{criterion_group, criterion_main, Criterion};
use rand::Rng;
use screenpipe_audio::AudioDevice;
-use screenpipe_server::{ContentType, DatabaseManager};
+use screenpipe_server::{db_types::ContentType, DatabaseManager};
use screenpipe_vision::OcrEngine;
use std::sync::Arc;
use tokio::runtime::Runtime;
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index 645a57e42..ae3c84259 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -159,9 +159,12 @@ async fn main() -> anyhow::Result<()> {
_ => true,
};
- if should_log {
- let _log_guard = setup_logging(&local_data_dir, &cli)?;
- }
+ // Store the guard in a variable that lives for the entire main function
+ let _log_guard = if should_log {
+ Some(setup_logging(&local_data_dir, &cli)?)
+ } else {
+ None
+ };
let h = Highlight::init(HighlightConfig {
project_id: String::from("82688"),
@@ -585,7 +588,7 @@ async fn main() -> anyhow::Result<()> {
}
// Add languages section
- println!("├─────────────────────┼────────────────────────────────────┤");
+ println!("├─────────────────────┼───────────────────────────────────���┤");
println!("│ languages │ │");
const MAX_ITEMS_TO_DISPLAY: usize = 5;
diff --git a/screenpipe-vision/src/ocr.swift b/screenpipe-vision/src/ocr.swift
index 766d3fcea..6b4816d51 100644
--- a/screenpipe-vision/src/ocr.swift
+++ b/screenpipe-vision/src/ocr.swift
@@ -46,16 +46,6 @@ public func performOCR(imageData: UnsafePointer<UInt8>, length: Int, width: Int,
// Preprocess the image
let ciImage = CIImage(cgImage: cgImage)
let context = CIContext(options: nil)
-
- // Apply preprocessing filters (slightly reduced contrast compared to original)
- // let processed =
- // ciImage
- // .applyingFilter(
- // "CIColorControls", parameters: [kCIInputContrastKey: 1.2]
- // )
- // .applyingFilter(
- // "CIUnsharpMask", parameters: [kCIInputRadiusKey: 0.5, kCIInputIntensityKey: 0.7])
- let processed = ciImage
guard let preprocessedCGImage = context.createCGImage(ciImage, from: ciImage.extent) else {
return strdup("Error: Failed to create preprocessed image")