From 4ccabbcc067ae19f91495daf5aeaca89f258576b Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 25 May 2024 17:55:17 +0200 Subject: [PATCH] try few things --- cognee/config.py | 2 +- cognee/infrastructure/InfrastructureConfig.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cognee/config.py b/cognee/config.py index 0f98db016..67e6f094c 100644 --- a/cognee/config.py +++ b/cognee/config.py @@ -9,7 +9,7 @@ from pathlib import Path from dotenv import load_dotenv from cognee.root_dir import get_absolute_path from cognee.shared.data_models import ChunkStrategy, DefaultGraphModel - +logging.basicConfig(level=logging.DEBUG) def load_dontenv(): base_dir = Path(__file__).resolve().parent.parent # Load the .env file from the base directory diff --git a/cognee/infrastructure/InfrastructureConfig.py b/cognee/infrastructure/InfrastructureConfig.py index 65de592e7..fb2a8691d 100644 --- a/cognee/infrastructure/InfrastructureConfig.py +++ b/cognee/infrastructure/InfrastructureConfig.py @@ -1,4 +1,5 @@ import logging +import os from cognee.config import Config from .databases.relational import DuckDBAdapter, DatabaseEngine @@ -11,7 +12,7 @@ from .data.chunking.DefaultChunkEngine import DefaultChunkEngine from ..shared.data_models import GraphDBType, DefaultContentPrediction, KnowledgeGraph, SummarizedContent, \ LabeledContent, DefaultCognitiveLayer - +logging.basicConfig(level=logging.DEBUG) class InfrastructureConfig(): config = Config() @@ -47,11 +48,11 @@ class InfrastructureConfig(): def get_config(self, config_entity: str = None) -> dict: config = Config() config.load() - logging.info("cf path: %s", config.db_path) + logging.debug("cf path: %s", config.db_path) if (config_entity is None or config_entity == "database_engine") and self.database_engine is None: - db_path = self.system_root_directory + "/" + config.db_path + db_path = os.path.join(self.system_root_directory,config.db_path) LocalStorage.ensure_directory_exists(db_path)