Skip to content

~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.

refactor: Clarify log table usage and mark Log as deprecated

LearningCircuit8677a21d55d6
diff --git a/src/local_deep_research/database/models/__init__.py b/src/local_deep_research/database/models/__init__.py
index ed10289b14..f7099a6d9d 100644
--- a/src/local_deep_research/database/models/__init__.py
+++ b/src/local_deep_research/database/models/__init__.py
@@ -15,7 +15,11 @@ from .benchmark import (
DatasetType,
)
from .cache import Cache, SearchCache
-from .logs import Journal, Log, ResearchLog
+from .logs import (
+ Journal,
+ Log,
+ ResearchLog,
+) # Note: Log is deprecated, use ResearchLog
from .metrics import ModelUsage, ResearchRating, SearchCall, TokenUsage
from .providers import ProviderModel
from .queue import QueueStatus, TaskMetadata
diff --git a/src/local_deep_research/database/models/logs.py b/src/local_deep_research/database/models/logs.py
index 36e123ff2e..b16d39a4b4 100644
--- a/src/local_deep_research/database/models/logs.py
+++ b/src/local_deep_research/database/models/logs.py
@@ -22,8 +22,13 @@ from .base import Base
class Log(Base):
"""
- Application logs stored in encrypted database.
- Provides secure, searchable logging without external files.
+ DEPRECATED: This table is not used. Use ResearchLog instead.
+
+ Originally designed for general application logs but never implemented.
+ Kept for backward compatibility only - all actual logging uses ResearchLog.
+
+ As noted by djpetti: "I'm not totally sure why we need two separate tables for logs..."
+ The answer is: we don't. This table exists but is unused.
"""
__tablename__ = "logs"
@@ -99,7 +104,13 @@ class Log(Base):
class ResearchLog(Base):
"""
- Logs specifically for research operations.
+ The active logging table for all research operations.
+
+ This is the only log table actually used in the application.
+ All logging from research operations, including debug messages,
+ errors, and milestones are stored here.
+
+ Note: The 'Log' table exists but is deprecated and unused.
"""
__tablename__ = "app_logs"