diff --git a/kai/llm_io_handler.py b/kai/llm_io_handler.py index 65f46d8a..bb6cc6cc 100644 --- a/kai/llm_io_handler.py +++ b/kai/llm_io_handler.py @@ -81,7 +81,7 @@ def get_prompt( if not fallback: raise e - KAI_LOG.error(f"Template '{e.name}' not found. Falling back to main.jinja") + KAI_LOG.warning(f"Template '{e.name}' not found. Falling back to main.jinja") template = jinja_env.get_template("main.jinja") KAI_LOG.debug(f"Template {template.filename} loaded") diff --git a/kai/service/incident_store/incident_store.py b/kai/service/incident_store/incident_store.py index f657a6bd..23c53d77 100644 --- a/kai/service/incident_store/incident_store.py +++ b/kai/service/incident_store/incident_store.py @@ -93,8 +93,6 @@ def load_reports_from_directory(store: "IncidentStore", path: str): generated_at=datetime.datetime.now(), ) - KAI_LOG.info(f"Loading application {app}\n") - store.load_report(app_initial, Report(report_path)) KAI_LOG.info(f"Loaded application - initial {app}\n") diff --git a/kai/service/incident_store/psql.py b/kai/service/incident_store/psql.py index 2beb0d1b..27be5f3f 100644 --- a/kai/service/incident_store/psql.py +++ b/kai/service/incident_store/psql.py @@ -307,7 +307,7 @@ def load_report(self, app: Application, report: Report) -> tuple[int, int, int]: solved_incidents = set(application.incidents) - set(incidents_temp) number_solved_incidents = len(solved_incidents) KAI_LOG.debug(f"Number of solved incidents: {len(solved_incidents)}") - KAI_LOG.debug(f"{solved_incidents=}") + # KAI_LOG.debug(f"{solved_incidents=}") for solved_incident in solved_incidents: file_path = os.path.join(