Updating log configs
This commit is contained in:
parent
a4f32f31c2
commit
25c48cd1ea
|
@ -690,6 +690,7 @@ func (h *DockerHandle) WaitCh() chan *cstructs.WaitResult {
|
|||
func (h *DockerHandle) Update(task *structs.Task) error {
|
||||
// Store the updated kill timeout.
|
||||
h.killTimeout = task.KillTimeout
|
||||
h.logCollector.UpdateLogConfig(task.LogConfig)
|
||||
|
||||
// Update is not possible
|
||||
return nil
|
||||
|
|
|
@ -224,6 +224,7 @@ func (h *execHandle) WaitCh() chan *cstructs.WaitResult {
|
|||
func (h *execHandle) Update(task *structs.Task) error {
|
||||
// Store the updated kill timeout.
|
||||
h.killTimeout = task.KillTimeout
|
||||
h.executor.UpdateLogConfig(task.LogConfig)
|
||||
|
||||
// Update is not possible
|
||||
return nil
|
||||
|
|
|
@ -275,6 +275,7 @@ func (h *javaHandle) WaitCh() chan *cstructs.WaitResult {
|
|||
func (h *javaHandle) Update(task *structs.Task) error {
|
||||
// Store the updated kill timeout.
|
||||
h.killTimeout = task.KillTimeout
|
||||
h.executor.UpdateLogConfig(task.LogConfig)
|
||||
|
||||
// Update is not possible
|
||||
return nil
|
||||
|
|
|
@ -296,6 +296,7 @@ func (h *qemuHandle) WaitCh() chan *cstructs.WaitResult {
|
|||
func (h *qemuHandle) Update(task *structs.Task) error {
|
||||
// Store the updated kill timeout.
|
||||
h.killTimeout = task.KillTimeout
|
||||
h.executor.UpdateLogConfig(task.LogConfig)
|
||||
|
||||
// Update is not possible
|
||||
return nil
|
||||
|
|
|
@ -200,6 +200,7 @@ func (h *rawExecHandle) WaitCh() chan *cstructs.WaitResult {
|
|||
func (h *rawExecHandle) Update(task *structs.Task) error {
|
||||
// Store the updated kill timeout.
|
||||
h.killTimeout = task.KillTimeout
|
||||
h.executor.UpdateLogConfig(task.LogConfig)
|
||||
|
||||
// Update is not possible
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue