Skip to content

Commit

Permalink
feat: bit more logs (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Jul 7, 2024
1 parent 1c9efc3 commit 623e584
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions keep/searchengine/searchengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def search_preset_alerts(
Returns:
dict[str, list[AlertDto]]: The list of alerts that match each query
"""
self.logger.info("Searching alerts for presets")
self.logger.info(
"Searching alerts for presets",
extra={"tenant_id": self.tenant_id, "search_mode": self.search_mode},
)

# if internal
if self.search_mode == SearchMode.INTERNAL:
Expand Down Expand Up @@ -227,7 +230,10 @@ def search_preset_alerts(
extra={"preset_id": preset.id, "preset_name": preset.name},
)
pass
self.logger.info("Finished searching alerts for presets")
self.logger.info(
"Finished searching alerts for presets",
extra={"tenant_id": self.tenant_id, "search_mode": self.search_mode},
)
return presets

def _create_raw_sql(self, sql_template, params):
Expand Down

0 comments on commit 623e584

Please sign in to comment.