Skip to content

Commit

Permalink
tweak(task): change task log file name
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jul 25, 2023
1 parent b5f7291 commit 71fc5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (t *Task) writeLog(v model.InstalledApp, data []byte) {
return
}

path := filepath.Join(saveDir, fmt.Sprintf("task_%d.log", v.ID))
path := filepath.Join(saveDir, fmt.Sprintf("task_%d_%s.log", v.ID, v.BundleIdentifier))
if err := os.WriteFile(path, data, 0644); err != nil {
log.Error("write task log failed :" + path)
return
Expand Down

0 comments on commit 71fc5ce

Please sign in to comment.