Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Fix issue that we mask the task and task check exeuction error when storing it
天舟68cc7260de4f
diff --git a/server/task_check_scheduler.go b/server/task_check_scheduler.goindex 811d0c35e3..0d41283be2 100644--- a/server/task_check_scheduler.go+++ b/server/task_check_scheduler.go@@ -126,15 +126,15 @@ func (s *TaskCheckScheduler) Run() error {zap.String("type", string(taskCheckRun.Type)),zap.Error(err),)- bytes, err := json.Marshal(api.TaskCheckRunResultPayload{+ bytes, marshalErr := json.Marshal(api.TaskCheckRunResultPayload{Detail: err.Error(),})- if err != nil {+ if marshalErr != nil {s.l.Error("Failed to marshal task check run result",zap.Int("id", taskCheckRun.ID),zap.Int("task_id", taskCheckRun.TaskId),zap.String("type", string(taskCheckRun.Type)),- zap.Error(err),+ zap.Error(marshalErr),)return}diff --git a/server/task_scheduler.go b/server/task_scheduler.goindex 4b66301443..58bf23006f 100644--- a/server/task_scheduler.go+++ b/server/task_scheduler.go@@ -169,14 +169,14 @@ func (s *TaskScheduler) Run() error {zap.String("type", string(task.Type)),zap.Error(err),)- bytes, err := json.Marshal(api.TaskRunResultPayload{+ bytes, marshalErr := json.Marshal(api.TaskRunResultPayload{Detail: err.Error(),})- if err != nil {+ if marshalErr != nil {s.l.Error("Failed to marshal task run result",zap.Int("task_id", task.ID),zap.String("type", string(task.Type)),- zap.Error(err),+ zap.Error(marshalErr),)return}