Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion aggregator/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,11 @@ func (r *RpcServer) WithdrawFunds(ctx context.Context, payload *avsproto.Withdra
)

if err != nil {
r.config.Logger.Error("failed to send withdrawal UserOp",
// See preset.LogBundlerError: Warn on on-chain revert (user's withdrawal
// reverted — e.g. ERC20 transfer to blacklisted recipient, insufficient
// token balance after race), Error on infra/AA (bundler down, AA21, etc.).
preset.LogBundlerError(r.config.Logger, err,
"failed to send withdrawal UserOp",
"error", err,
"user", user.Address.String(),
"recipient", payload.RecipientAddress,
Expand Down
5 changes: 4 additions & 1 deletion core/taskengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -3080,7 +3080,10 @@ func (n *Engine) SimulateTask(user *model.User, trigger *avsproto.TaskTrigger, n
cleanErrorMsg = stackTraceRegex.ReplaceAllString(cleanErrorMsg, "")
cleanErrorMsg = strings.TrimSpace(cleanErrorMsg)

n.logger.Error("workflow simulation completed with failures",
// User-workflow simulation failure: per-step errors are captured in the
// persisted execution steps. Log summary at Warn so it stays out of Sentry
// error alerts.
n.logger.Warn("workflow simulation completed with failures",
"error", cleanErrorMsg,
"task_id", task.Id,
"simulation_id", simulationID,
Expand Down
5 changes: 4 additions & 1 deletion core/taskengine/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,10 @@ func (x *TaskExecutor) RunTask(task *model.Task, queueData *QueueExecutionData)
case ExecutionSuccess:
x.logger.Info("task execution completed successfully", "task_id", task.Id, "execution_id", queueData.ExecutionID, "total_steps", len(vm.ExecutionLogs))
case ExecutionFailed:
x.logger.Error("task execution completed with failures",
// User-workflow failure: per-step errors are already logged at their sites
// and the ExecutionStatus_EXECUTION_STATUS_FAILED is persisted below. Log
// the summary at Warn so it stays out of Sentry error alerts.
x.logger.Warn("task execution completed with failures",
"error", executionError,
"task_id", task.Id,
"execution_id", queueData.ExecutionID,
Expand Down
Loading
Loading