Skip to content

Commit

Permalink
PWX-34916: changed the default log level for autopilot from debug to …
Browse files Browse the repository at this point in the history
…info (#1324) (#1373)

* changed the default log level for autopilot from debug to info
  • Loading branch information
ezhang-px authored Dec 8, 2023
1 parent 5c7741d commit 7ed33e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/storage/portworx/component/autopilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (c *autopilot) createDeployment(

args := map[string]string{
"config": "/etc/config/config.yaml",
"log-level": "debug",
"log-level": "info",
}
for k, v := range cluster.Spec.Autopilot.Args {
if _, exists := autopilotConfigParams[k]; exists {
Expand Down
4 changes: 2 additions & 2 deletions drivers/storage/portworx/components_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,7 @@ func TestAutopilotInstall(t *testing.T) {
},
Args: map[string]string{
"min_poll_interval": "4",
"log-level": "debug",
"log-level": "info",
},
},
Security: &corev1.SecuritySpec{
Expand Down Expand Up @@ -3365,7 +3365,7 @@ func TestAutopilotArgumentsChange(t *testing.T) {
)
require.Contains(t,
autopilotDeployment.Spec.Template.Spec.Containers[0].Command,
"--log-level=debug",
"--log-level=info",
)

// Overwrite existing argument with new value
Expand Down
2 changes: 1 addition & 1 deletion drivers/storage/portworx/testspec/autopilotDeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
- command:
- /autopilot
- --config=/etc/config/config.yaml
- --log-level=debug
- --log-level=info
imagePullPolicy: Always
image: docker.io/portworx/autopilot:1.1.1
resources:
Expand Down

0 comments on commit 7ed33e3

Please sign in to comment.