mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add exec event create/start log
added exec event log follwing issue #8662 proposal. logging events for exec create and start API Signed-off-by: daehyeok mun <daehyeok@daehyeokui-MacBook-Air.local>
This commit is contained in:
parent
b2ab733c99
commit
e3d813f37f
1 changed files with 4 additions and 0 deletions
|
@ -154,6 +154,8 @@ func (d *Daemon) ContainerExecCreate(job *engine.Job) engine.Status {
|
|||
Running: false,
|
||||
}
|
||||
|
||||
container.LogEvent("exec_create: " + execConfig.ProcessConfig.Entrypoint + " " + strings.Join(execConfig.ProcessConfig.Arguments, " "))
|
||||
|
||||
d.registerExecCommand(execConfig)
|
||||
|
||||
job.Printf("%s\n", execConfig.ID)
|
||||
|
@ -192,6 +194,8 @@ func (d *Daemon) ContainerExecStart(job *engine.Job) engine.Status {
|
|||
log.Debugf("starting exec command %s in container %s", execConfig.ID, execConfig.Container.ID)
|
||||
container := execConfig.Container
|
||||
|
||||
container.LogEvent("exec_start: " + execConfig.ProcessConfig.Entrypoint + " " + strings.Join(execConfig.ProcessConfig.Arguments, " "))
|
||||
|
||||
if execConfig.OpenStdin {
|
||||
r, w := io.Pipe()
|
||||
go func() {
|
||||
|
|
Loading…
Reference in a new issue