Skip to content

Commit

Permalink
moving config.identifier to the begining of plugin output
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois PONSARD committed Jul 4, 2024
1 parent 506a0d5 commit 845cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/modgearman/readAndExecute.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func execEPN(result *answer, cmd *command, received *request) {
func fixReturnCodes(result *answer, config *config, state *os.ProcessState) {
if result.returnCode >= 0 && result.returnCode <= 3 {
if config.workerNameInResult {
result.output = fmt.Sprintf("%s (worker: %s)", result.output, config.identifier)
result.output = fmt.Sprintf("(%s) %s", config.identifier, result.output)
}

return
Expand Down

0 comments on commit 845cb67

Please sign in to comment.