~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: change debug logging from warning to debug level (#2017)
LearningCircuit8eb0d5fde81c
diff --git a/src/local_deep_research/metrics/token_counter.py b/src/local_deep_research/metrics/token_counter.pyindex 454b01755f..48b609b9a0 100644--- a/src/local_deep_research/metrics/token_counter.py+++ b/src/local_deep_research/metrics/token_counter.py@@ -770,8 +770,8 @@ class TokenCounter:all_research_count = (session.query(func.count(ResearchHistory.id)).scalar() or 0)- logger.warning(- f"DEBUG: Total ResearchHistory records in database: {all_research_count}"+ logger.debug(+ f"Total ResearchHistory records in database: {all_research_count}")# Debug: List first few research IDs and their timestamps@@ -785,15 +785,13 @@ class TokenCounter:.all())if sample_researches:- logger.warning("DEBUG: Sample ResearchHistory records:")+ logger.debug("Sample ResearchHistory records:")for r_id, r_created, r_mode in sample_researches:- logger.warning(+ logger.debug(f" - ID: {r_id}, Created: {r_created}, Mode: {r_mode}")else:- logger.warning(- "DEBUG: No ResearchHistory records found in database!"- )+ logger.debug("No ResearchHistory records found in database")# Get time filter conditions for ResearchHistory querystart_time, end_time = None, None@@ -820,16 +818,14 @@ class TokenCounter:# Apply mode filter if specifiedmode_filter = research_mode if research_mode != "all" else Noneif mode_filter:- logger.warning(- f"DEBUG: Applying mode filter: {mode_filter}"- )+ logger.debug(f"Applying mode filter: {mode_filter}")research_query = research_query.filter(ResearchHistory.mode == mode_filter)total_researches = research_query.scalar() or 0- logger.warning(- f"DEBUG: Final filtered research count: {total_researches}"+ logger.debug(+ f"Final filtered research count: {total_researches}")# Also check distinct research_ids in TokenUsage for comparison@@ -839,8 +835,8 @@ class TokenCounter:).scalar()or 0)- logger.warning(- f"DEBUG: Distinct research_ids in TokenUsage: {token_research_count}"+ logger.debug(+ f"Distinct research_ids in TokenUsage: {token_research_count}")# Model statistics using ORM aggregation@@ -1002,8 +998,8 @@ class TokenCounter:RateLimitAttempt.error_type == "RateLimitError",).count()- logger.warning(- f"DEBUG: Rate limit attempts in database: total={total_attempts}, successful={successful_attempts}"+ logger.debug(+ f"Rate limit attempts in database: total={total_attempts}, successful={successful_attempts}")# Get all attempts for detailed calculations@@ -1127,8 +1123,8 @@ class TokenCounter:engine_stats.append(engine_stat)- logger.warning(- f"DEBUG: Tracked engines: {tracked_engines}, engine_stats: {engine_stats}"+ logger.debug(+ f"Tracked engines: {tracked_engines}, engine_stats: {engine_stats}")result = {@@ -1190,8 +1186,8 @@ class TokenCounter:},}- logger.warning(- f"DEBUG: Returning from _get_metrics_from_encrypted_db - total_researches: {result['total_researches']}"+ logger.debug(+ f"Returning from _get_metrics_from_encrypted_db - total_researches: {result['total_researches']}")return resultexcept Exception as e:@@ -1338,8 +1334,8 @@ class TokenCounter:encrypted.get("total_researches", 0),thread.get("total_researches", 0),)- logger.warning(- f"DEBUG: Merged metrics - encrypted researches: {encrypted.get('total_researches', 0)}, thread researches: {thread.get('total_researches', 0)}, final: {total_researches}"+ logger.debug(+ f"Merged metrics - encrypted researches: {encrypted.get('total_researches', 0)}, thread researches: {thread.get('total_researches', 0)}, final: {total_researches}")# Merge model usage@@ -1400,8 +1396,8 @@ class TokenCounter:"token_breakdown": token_breakdown,}- logger.warning(- f"DEBUG: Final get_token_metrics result - total_researches: {result['total_researches']}"+ logger.debug(+ f"Final get_token_metrics result - total_researches: {result['total_researches']}")return result