mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 09:05:39 +00:00
feature: Minor change to action timeout message to be more consistent with other logs (#380)
This commit is contained in:
@@ -326,7 +326,7 @@ func stepLogStart(req *ExecutionRequest) bool {
|
|||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"actionTitle": req.logEntry.ActionTitle,
|
"actionTitle": req.logEntry.ActionTitle,
|
||||||
"timeout": req.Action.Timeout,
|
"timeout": req.Action.Timeout,
|
||||||
}).Infof("Action starting")
|
}).Infof("Action started")
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,10 @@ func stepExec(req *ExecutionRequest) bool {
|
|||||||
appendErrorToStderr(waiterr, req.logEntry)
|
appendErrorToStderr(waiterr, req.logEntry)
|
||||||
|
|
||||||
if ctx.Err() == context.DeadlineExceeded {
|
if ctx.Err() == context.DeadlineExceeded {
|
||||||
log.Warnf("Command timed out: %v", req.finalParsedCommand)
|
log.WithFields(log.Fields{
|
||||||
|
"actionTitle": req.logEntry.ActionTitle,
|
||||||
|
}).Warnf("Action timed out")
|
||||||
|
|
||||||
// The context timeout should kill the process, but let's make sure.
|
// The context timeout should kill the process, but let's make sure.
|
||||||
req.executor.Kill(req.logEntry)
|
req.executor.Kill(req.logEntry)
|
||||||
req.logEntry.TimedOut = true
|
req.logEntry.TimedOut = true
|
||||||
|
|||||||
Reference in New Issue
Block a user