diff --git a/workflow/controller/agent.go b/workflow/controller/agent.go index c403646937b9..7b7137b6d8a4 100644 --- a/workflow/controller/agent.go +++ b/workflow/controller/agent.go @@ -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{