Update GetArtifact by removing unused logger

This commit is contained in:
Kenjiro Nakayama
2016-08-06 23:37:32 +09:00
parent f847db6d5d
commit dd269abeb5
3 changed files with 6 additions and 14 deletions

View File

@@ -323,7 +323,7 @@ func (r *TaskRunner) run() {
}
for _, artifact := range r.task.Artifacts {
if err := getter.GetArtifact(r.taskEnv, artifact, taskDir, r.logger); err != nil {
if err := getter.GetArtifact(r.taskEnv, artifact, taskDir); err != nil {
r.setState(structs.TaskStateDead,
structs.NewTaskEvent(structs.TaskArtifactDownloadFailed).SetDownloadError(err))
r.restartTracker.SetStartError(dstructs.NewRecoverableError(err, true))