Merge pull request #4799 from hashicorp/f-hook-logging-tweaks
tr: cleanup hook logs
This commit is contained in:
commit
1676fcd4ce
|
@ -90,7 +90,6 @@ func (tr *TaskRunner) prestart() error {
|
||||||
for _, hook := range tr.runnerHooks {
|
for _, hook := range tr.runnerHooks {
|
||||||
pre, ok := hook.(interfaces.TaskPrestartHook)
|
pre, ok := hook.(interfaces.TaskPrestartHook)
|
||||||
if !ok {
|
if !ok {
|
||||||
tr.logger.Trace("skipping non-prestart hook", "name", hook.Name())
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +285,7 @@ func (tr *TaskRunner) stop() error {
|
||||||
|
|
||||||
if tr.logger.IsTrace() {
|
if tr.logger.IsTrace() {
|
||||||
end := time.Now()
|
end := time.Now()
|
||||||
tr.logger.Trace("finished stop hooks", "name", name, "end", end, "duration", end.Sub(start))
|
tr.logger.Trace("finished stop hook", "name", name, "end", end, "duration", end.Sub(start))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,7 +312,6 @@ func (tr *TaskRunner) updateHooks() {
|
||||||
for _, hook := range tr.runnerHooks {
|
for _, hook := range tr.runnerHooks {
|
||||||
upd, ok := hook.(interfaces.TaskUpdateHook)
|
upd, ok := hook.(interfaces.TaskUpdateHook)
|
||||||
if !ok {
|
if !ok {
|
||||||
tr.logger.Trace("skipping non-update hook", "name", hook.Name())
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -362,7 +360,6 @@ func (tr *TaskRunner) kill() {
|
||||||
for _, hook := range tr.runnerHooks {
|
for _, hook := range tr.runnerHooks {
|
||||||
upd, ok := hook.(interfaces.TaskKillHook)
|
upd, ok := hook.(interfaces.TaskKillHook)
|
||||||
if !ok {
|
if !ok {
|
||||||
tr.logger.Trace("skipping non-kill hook", "name", hook.Name())
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,7 +383,7 @@ func (tr *TaskRunner) kill() {
|
||||||
|
|
||||||
if tr.logger.IsTrace() {
|
if tr.logger.IsTrace() {
|
||||||
end := time.Now()
|
end := time.Now()
|
||||||
tr.logger.Trace("finished kill hooks", "name", name, "end", end, "duration", end.Sub(start))
|
tr.logger.Trace("finished kill hook", "name", name, "end", end, "duration", end.Sub(start))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue