feature: Add actionTitle to blocked log messages (#179)

This commit is contained in:
James Read 2023-10-25 20:38:27 +01:00 committed by GitHub
parent a09c278585
commit 5739091773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ func stepConcurrencyCheck(req *ExecutionRequest) bool {
if concurrentCount >= (req.action.MaxConcurrent + 1) { if concurrentCount >= (req.action.MaxConcurrent + 1) {
msg := fmt.Sprintf("Blocked from executing. This would mean this action is running %d times concurrently, but this action has maxExecutions set to %d.", concurrentCount, req.action.MaxConcurrent) msg := fmt.Sprintf("Blocked from executing. This would mean this action is running %d times concurrently, but this action has maxExecutions set to %d.", concurrentCount, req.action.MaxConcurrent)
log.Warnf(msg) log.WithFields(log.Fields{
"actionTitle": req.ActionName,
}).Warnf(msg)
req.logEntry.Stdout = msg req.logEntry.Stdout = msg
req.logEntry.Blocked = true req.logEntry.Blocked = true