Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 7c7cec0

Browse files
authored
style(offline_download): add more description in log (#653)
fix(offline_download): add more description in log
1 parent 3838ef0 commit 7c7cec0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/bootstrap/offline_download.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ func InitOfflineDownloadTools() {
99
for k, v := range tool.Tools {
1010
res, err := v.Init()
1111
if err != nil {
12-
utils.Log.Warnf("init tool %s failed: %s", k, err)
12+
utils.Log.Warnf("init offline download tool %s failed: %s", k, err)
1313
} else {
14-
utils.Log.Infof("init tool %s success: %s", k, res)
14+
utils.Log.Infof("init offline download tool %s success: %s", k, res)
1515
}
1616
}
1717
}

internal/offline_download/tool/add.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ func AddURL(ctx context.Context, args *AddURLArgs) (task.TaskExtensionInfo, erro
7272
// get tool
7373
tool, err := Tools.Get(args.Tool)
7474
if err != nil {
75-
return nil, errors.Wrapf(err, "failed get tool")
75+
return nil, errors.Wrapf(err, "failed get offline download tool")
7676
}
7777
// check tool is ready
7878
if !tool.IsReady() {
7979
// try to init tool
8080
if _, err := tool.Init(); err != nil {
81-
return nil, errors.Wrapf(err, "failed init tool %s", args.Tool)
81+
return nil, errors.Wrapf(err, "failed init offline download tool %s", args.Tool)
8282
}
8383
}
8484

0 commit comments

Comments
 (0)