clarify unknown signal log line (#5466)
This commit is contained in:
parent
a4572919cd
commit
b2b7618a1c
|
@ -496,8 +496,10 @@ func (d *Driver) SignalTask(taskID string, signal string) error {
|
|||
|
||||
sig := os.Interrupt
|
||||
if s, ok := signals.SignalLookup[signal]; ok {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
sig = s
|
||||
} else {
|
||||
d.logger.Warn("unknown signal to send to task, using SIGINT instead", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
|
||||
}
|
||||
return handle.exec.Signal(sig)
|
||||
}
|
||||
|
|
|
@ -524,8 +524,10 @@ func (d *Driver) SignalTask(taskID string, signal string) error {
|
|||
|
||||
sig := os.Interrupt
|
||||
if s, ok := signals.SignalLookup[signal]; ok {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
sig = s
|
||||
} else {
|
||||
d.logger.Warn("unknown signal to send to task, using SIGINT instead", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
|
||||
}
|
||||
return handle.exec.Signal(sig)
|
||||
}
|
||||
|
|
|
@ -494,8 +494,9 @@ func (d *Driver) SignalTask(taskID string, signal string) error {
|
|||
if s, ok := signals.SignalLookup[signal]; ok {
|
||||
sig = s
|
||||
} else {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
d.logger.Warn("unknown signal to send to task, using SIGINT instead", "signal", signal, "task_id", handle.taskConfig.ID)
|
||||
}
|
||||
|
||||
return handle.exec.Signal(sig)
|
||||
}
|
||||
|
||||
|
|
|
@ -853,8 +853,10 @@ func (d *Driver) SignalTask(taskID string, signal string) error {
|
|||
|
||||
sig := os.Interrupt
|
||||
if s, ok := signals.SignalLookup[signal]; ok {
|
||||
d.logger.Warn("signal to send to task unknown, using SIGINT", "signal", signal, "task_id", handle.taskConfig.ID, "task_name", handle.taskConfig.Name)
|
||||
sig = s
|
||||
} else {
|
||||
d.logger.Warn("unknown signal to send to task, using SIGINT instead", "signal", signal, "task_id", handle.taskConfig.ID, "task_name", handle.taskConfig.Name)
|
||||
|
||||
}
|
||||
return handle.exec.Signal(sig)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue