Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress health check progress bar #909

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felixbuenemann
Copy link

Use curl -s option to suppress the curl progress bar in health check logs.

Log before change:

{
  "Status": "healthy",
  "FailingStreak": 0,
  "Log": [
    {
      "Start": "2024-08-21T11:52:00.657679683+02:00",
      "End": "2024-08-21T11:52:00.742591535+02:00",
      "ExitCode": 0,
      "Output": "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100     7    0     7    0     0    306      0 --:--:-- --:--:-- --:--:--   318\nsuccess"
    }
  ]
}

After change:

{
  "Status": "healthy",
  "FailingStreak": 0,
  "Log": [
    {
      "Start": "2024-08-21T12:15:44.48549569+02:00",
      "End": "2024-08-21T12:15:44.552755263+02:00",
      "ExitCode": 0,
      "Output": "success"
    }
  ]
}

Log obtained by running:

docker inspect --format='{{json .State.Health}}' <container-id> | jq .

Use curl -s option to suppress the curl progress bar in health check logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant