Skip to content

Commit

Permalink
fix: Correct log level for agent containers (#12929)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <[email protected]>
(cherry picked from commit 7eaf305)
  • Loading branch information
terrytangyuan authored and agilgur5 committed Apr 19, 2024
1 parent 30f2e0d commit 01f8438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/controller/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ func (woc *wfOperationCtx) createAgentPod(ctx context.Context) (*apiv1.Pod, erro
// the `init` container populates the shared empty-dir volume with tokens
agentInitCtr := agentCtrTemplate.DeepCopy()
agentInitCtr.Name = common.InitContainerName
agentInitCtr.Args = []string{"agent", "init"}
agentInitCtr.Args = []string{"agent", "init", "--loglevel", getExecutorLogLevel()}
// the `main` container runs the actual work
agentMainCtr := agentCtrTemplate.DeepCopy()
agentMainCtr.Name = common.MainContainerName
agentMainCtr.Args = []string{"agent", "main"}
agentMainCtr.Args = []string{"agent", "main", "--loglevel", getExecutorLogLevel()}

pod := &apiv1.Pod{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 01f8438

Please sign in to comment.