Enable/disable logging telemetry by setting bool in khoj.yml config

We log usage telemetry by default, unless setting explicitly set in
khoj.yml
This commit is contained in:
Debanjum Singh Solanky 2023-05-15 20:51:49 +08:00
parent 131b8407b5
commit 9ca61d62ff

View file

@ -89,10 +89,15 @@ class ProcessorConfig(ConfigBase):
conversation: Optional[ConversationProcessorConfig]
class AppConfig(ConfigBase):
should_log_telemetry: bool
class FullConfig(ConfigBase):
content_type: Optional[ContentConfig]
search_type: Optional[SearchConfig]
processor: Optional[ProcessorConfig]
app: Optional[AppConfig] = AppConfig(should_log_telemetry=True)
class SearchResponse(ConfigBase):