diff --git a/environment/docker/container.go b/environment/docker/container.go index c99694a..8a2c8b2 100644 --- a/environment/docker/container.go +++ b/environment/docker/container.go @@ -69,7 +69,9 @@ func (e *Environment) Attach() error { // Stream the reader output to the console which will then fire off events and handle console // throttling and sending the output to the user. - _, _ = io.Copy(console, e.stream.Reader) + if _, err := io.Copy(console, e.stream.Reader); err != nil { + log.WithField("environment_id", e.Id).WithField("error", errors.WithStack(err)).Error("error while copying environment output to console") + } }(c) return nil