Additional error logging

This commit is contained in:
Dane Everitt 2020-09-03 21:21:42 -07:00
parent d99225c0fb
commit b9f6e17a7d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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