feat: 错误日志添加域名等信息
All checks were successful
Release / deploy (push) Successful in 2m41s

This commit is contained in:
王一之 2024-03-12 22:23:13 +08:00
parent cd43e0a621
commit 44fbd4c0a6

View File

@ -2,7 +2,7 @@ package watch
import (
"context"
"errors"
"fmt"
"github.com/codfrm/cago/pkg/logger"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
@ -30,7 +30,7 @@ func (w *watch) queryRecord(domain, name, value, line string) (*dnspod.RecordLis
return v, nil
}
}
return nil, errors.New("record not found")
return nil, fmt.Errorf("[%s] %s %s %s record not found", domain, name, value, line)
}
func (w *watch) enable(ctx context.Context, domain string, recordId uint64) error {