Healthchecks.io: Default for ping_body_limit #889

Closed
opened 2024-06-25 19:21:30 +00:00 by mrclschstr · 3 comments

What I'm trying to do and why

I noticed a small error with the default value for the ping_body_limit of the healthchecks.io integration. According to the documentation, the default value should be 100000, but I have noticed truncated logs in my checks for some time now.

I have noticed that the default value has changed since the following commit: 9647301b99 (diff-03470cdfb71141d2237530601ed560936ffb2273). The variable DEFAULT_PING_BODY_LIMIT_BYTES is now set to 1500 bytes and no longer to 100000.

My current workaround is to set the value for ping_body_limit to 100000 in the borgmatic config.

Steps to reproduce

Just make a backup and inspect the truncated logs in the healthchecks.io checks.

Actual behavior

The logs are truncated.

Expected behavior

The logs should be readable in full and not be cut off using the default value for ping_body_limit.

Other notes / implementation ideas

No response

borgmatic version

1.8.12

borgmatic installation method

pip install

Borg version

borg 1.2.8

Python version

Python 3.10.12

Database version (if applicable)

n/a

Operating system and version

Ubuntu 22.04.4 LTS

### What I'm trying to do and why I noticed a small error with the default value for the `ping_body_limit` of the healthchecks.io integration. According to the [documentation](https://torsion.org/borgmatic/docs/reference/configuration/), the default value should be 100000, but I have noticed truncated logs in my checks for some time now. I have noticed that the default value has changed since the following commit: https://projects.torsion.org/borgmatic-collective/borgmatic/commit/9647301b993fbbe89347cdc2290fa7a458c65a01#diff-03470cdfb71141d2237530601ed560936ffb2273. The variable `DEFAULT_PING_BODY_LIMIT_BYTES` is now set to 1500 bytes and no longer to 100000. My current workaround is to set the value for `ping_body_limit` to 100000 in the borgmatic config. ### Steps to reproduce Just make a backup and inspect the truncated logs in the healthchecks.io checks. ### Actual behavior The logs are truncated. ### Expected behavior The logs should be readable in full and not be cut off using the default value for `ping_body_limit`. ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.12 ### borgmatic installation method pip install ### Borg version borg 1.2.8 ### Python version Python 3.10.12 ### Database version (if applicable) n/a ### Operating system and version Ubuntu 22.04.4 LTS
Owner

Thanks for reporting this.. Good catch! I'm not sure why/how this default value regressed, but I do know that the maximum body size on older versions of the Healthchecks server used to be lower. In any case, I'm fine changing it back to 100000. I'm glad you have a work-around for now!

Thanks for reporting this.. Good catch! I'm not sure why/how this default value regressed, but I do know that the maximum body size on older versions of the Healthchecks server used to be lower. In any case, I'm fine changing it back to 100000. I'm glad you have a work-around for now!
Owner

Fixed in main and will be part of the next release!

Fixed in main and will be part of the next release!
Owner

Released in borgmatic 1.8.13!

Released in borgmatic 1.8.13!
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#889
No description provided.