Skip to content

Commit

Permalink
Fixed some logs
Browse files Browse the repository at this point in the history
Signed-off-by: JonahSussman <sussmanjonah@gmail.com>
  • Loading branch information
JonahSussman committed Jun 27, 2024
1 parent b246cc0 commit cee726d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kai/llm_io_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 0 additions & 2 deletions kai/service/incident_store/incident_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion kai/service/incident_store/psql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cee726d

Please sign in to comment.