Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #511 from vania-pooh/master
Browse files Browse the repository at this point in the history
Fixed NPE in logs capturing logic (fixes #510)
  • Loading branch information
aandryashin authored Jul 27, 2018
2 parents bd29e70 + 1a46342 commit 70c7afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ func (d *Docker) StartWithCancel() (*StartedService, error) {
ShowStdout: true,
ShowStderr: true,
})
defer r.Close()
if err != nil {
log.Printf("[%d] [FAILED_TO_COPY_LOGS] [%s] [Failed to capture container logs: %v]", requestId, browserContainerId, err)
return
}
defer r.Close()
filename := filepath.Join(d.LogOutputDir, d.LogName)
f, err := os.Create(filename)
if err != nil {
Expand Down

0 comments on commit 70c7afa

Please sign in to comment.