Skip to content

Commit

Permalink
logs: trying to find the guilty function
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0elliot committed Dec 20, 2023
1 parent f2ee395 commit af913b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db-connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,11 @@ func SetWorkflowExecution(ctx context.Context, workflowExecution WorkflowExecuti

//log.Printf("[INFO] Successfully saved new execution %s. Timestamp: %d!", workflowExecution.ExecutionId, workflowExecution.StartedAt)
} else {
log.Printf("[DEBUG][%s] compressing Workflow Execution with status: %s", workflowExecution.ExecutionId, workflowExecution.Status)
workflowExecution, _ := compressExecution(ctx, workflowExecution, "db-connector save")

log.Printf("[DEBUG][%s] Saving compressed Workflow Execution with status: %s", workflowExecution.ExecutionId, workflowExecution.Status)

// Print 1 out of X times as a debug mode
if rand.Intn(20) == 1 {
log.Printf("[INFO][%s] Saving execution with status %s and %d/%d results (not including subflows) - 2", workflowExecution.ExecutionId, workflowExecution.Status, len(workflowExecution.Results), len(workflowExecution.Workflow.Actions))
Expand Down

0 comments on commit af913b3

Please sign in to comment.