aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/webhook.go')
-rw-r--r--services/webhook/webhook.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/webhook/webhook.go b/services/webhook/webhook.go
index 3cd9deafd8..9d5dab85f7 100644
--- a/services/webhook/webhook.go
+++ b/services/webhook/webhook.go
@@ -5,6 +5,7 @@ package webhook
import (
"context"
+ "errors"
"fmt"
"strings"
@@ -111,7 +112,11 @@ func handler(items ...int64) []int64 {
for _, taskID := range items {
task, err := webhook_model.GetHookTaskByID(ctx, taskID)
if err != nil {
- log.Error("GetHookTaskByID[%d] failed: %v", taskID, err)
+ if errors.Is(err, util.ErrNotExist) {
+ log.Warn("GetHookTaskByID[%d] warn: %v", taskID, err)
+ } else {
+ log.Error("GetHookTaskByID[%d] failed: %v", taskID, err)
+ }
continue
}