Add basic log support
This commit is contained in:
parent
f9ad7970d2
commit
0136213e78
392 changed files with 56 additions and 47867 deletions
|
@ -217,6 +217,11 @@ func (s *server) createContainer(w http.ResponseWriter, r *http.Request) {
|
|||
e := containerd.NewEvent(containerd.StartContainerEventType)
|
||||
e.ID = id
|
||||
e.BundlePath = c.BundlePath
|
||||
logrus.Debug(c.Stderr, c.Stdout)
|
||||
e.Stdio = &containerd.Stdio{
|
||||
Stderr: c.Stderr,
|
||||
Stdout: c.Stdout,
|
||||
}
|
||||
s.supervisor.SendEvent(e)
|
||||
if err := <-e.Err; err != nil {
|
||||
code := http.StatusInternalServerError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue