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

Commit

Permalink
Fixed NPE in logs capturing logic (fixes #510)
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Jul 27, 2018
1 parent bd29e70 commit 1a46342
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 1a46342

Please sign in to comment.