From 36ba54d051f2e267a039659372529cc12b15ee28 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sun, 10 Aug 2025 05:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/usage.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src-tauri/src/commands/usage.rs b/src-tauri/src/commands/usage.rs index 3c47441..8b5cf9e 100644 --- a/src-tauri/src/commands/usage.rs +++ b/src-tauri/src/commands/usage.rs @@ -279,18 +279,6 @@ pub fn parse_jsonl_file( } else { 0.0 }; - - // 如果JSONL中有成本,可以记录差异用于调试 - if let Some(jsonl_cost) = entry.cost_usd { - if (jsonl_cost - cost).abs() > 0.0001 { - log::debug!( - "Cost difference for model {}: JSONL={:.4}, Calculated={:.4}", - message.model.as_ref().unwrap_or(&"unknown".to_string()), - jsonl_cost, - cost - ); - } - } // Use actual project path if found, otherwise use encoded name let project_path = actual_project_path