Skip to content

Commit

Permalink
fix(api): logs (#3276)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Feb 2, 2025
1 parent a32d3dc commit 3041119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keep/api/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def emit(self, record):
if not KEEP_STORE_WORKFLOW_LOGS:
return
if hasattr(record, "workflow_execution_id") and record.workflow_execution_id:
self.format(record)
self.records.append(record)

def push_logs_to_db(self):
Expand Down Expand Up @@ -334,7 +335,7 @@ def __init__(self, *args, rename_fields=None, **kwargs):
},
"loggers": {
"": {
"handlers": ["default", "workflowhandler"],
"handlers": ["workflowhandler", "default"],
"level": "DEBUG",
"propagate": False,
},
Expand Down

0 comments on commit 3041119

Please sign in to comment.