From b9f6e17a7d4d41e2772a6ecbcb5eaba676c35a9a Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 3 Sep 2020 21:21:42 -0700 Subject: [PATCH] Additional error logging --- environment/docker/container.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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