diff --git a/internal/bootstrap/offline_download.go b/internal/bootstrap/offline_download.go index 859648fde..0f9fa7ce7 100644 --- a/internal/bootstrap/offline_download.go +++ b/internal/bootstrap/offline_download.go @@ -9,9 +9,9 @@ func InitOfflineDownloadTools() { for k, v := range tool.Tools { res, err := v.Init() if err != nil { - utils.Log.Warnf("init tool %s failed: %s", k, err) + utils.Log.Warnf("init offline download tool %s failed: %s", k, err) } else { - utils.Log.Infof("init tool %s success: %s", k, res) + utils.Log.Infof("init offline download tool %s success: %s", k, res) } } } diff --git a/internal/offline_download/tool/add.go b/internal/offline_download/tool/add.go index 2f76dcf69..7fc8c278d 100644 --- a/internal/offline_download/tool/add.go +++ b/internal/offline_download/tool/add.go @@ -72,13 +72,13 @@ func AddURL(ctx context.Context, args *AddURLArgs) (task.TaskExtensionInfo, erro // get tool tool, err := Tools.Get(args.Tool) if err != nil { - return nil, errors.Wrapf(err, "failed get tool") + return nil, errors.Wrapf(err, "failed get offline download tool") } // check tool is ready if !tool.IsReady() { // try to init tool if _, err := tool.Init(); err != nil { - return nil, errors.Wrapf(err, "failed init tool %s", args.Tool) + return nil, errors.Wrapf(err, "failed init offline download tool %s", args.Tool) } }