Skip to content

Commit

Permalink
temp debug
Browse files Browse the repository at this point in the history
Signed-off-by: Kir Kolyshkin <[email protected]>
  • Loading branch information
kolyshkin committed Jul 14, 2020
1 parent 52af703 commit 707d9db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"runtime"
"time"

"github.com/opencontainers/runc/libcontainer"
"github.com/opencontainers/runc/libcontainer/logs"
Expand Down Expand Up @@ -31,7 +32,9 @@ func init() {
if err != nil {
panic(fmt.Sprintf("libcontainer: failed to configure logging: %v", err))
}
logrus.Debug("child process in init()")
logrus.Debug("child process in init(), sleeping ...")
time.Sleep(100 * time.Millisecond)
logrus.Debug("good morning!")
}
}

Expand Down
1 change: 1 addition & 0 deletions libcontainer/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func ForwardLogs(logPipe io.Reader) {
}
if err == io.EOF {
logrus.Debugf("log pipe has been closed: %+v", err)
// TODO: signal that we're done
return
}
if err != nil {
Expand Down

0 comments on commit 707d9db

Please sign in to comment.