Skip to content

Conversation

@dkoerichbird
Copy link
Contributor

@dkoerichbird dkoerichbird commented Oct 29, 2025

Note

Documents debug message throttling (new page and two config options) and redacts a key in an HTTP request example.

  • Config Docs:
    • New: content/momentum/4/config/ref-debug-throttle.md detailing debug throttling and options debug_throttle_max_num_same_message and debug_throttle_period_secs.
    • Summary Table: Add debug_throttle_max_num_same_message and debug_throttle_period_secs to content/momentum/4/config-options-summary.md with defaults and scope.
  • Push Example:
    • Redact hardcoded auth_key in content/momentum/3/3-push/push-http-request-eval.md.

Written by Cursor Bugbot for commit 7bc2d21. This will update automatically on new commits. Configure here.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for support-docs ready!

Name Link
🔨 Latest commit 7bc2d21
🔍 Latest deploy log https://app.netlify.com/projects/support-docs/deploys/690e0858cb7b910008b23f5f
😎 Deploy Preview https://deploy-preview-810--support-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
<timestamp> Message received from: <mailfrom>
```

then all messages that match this pattern will be considered the same for throttling purposes, regardless of the actual
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious how we do this matching, and what parts are considered to be dedupe-able? We might want to consider documenting the exact semantic as the behavior observed in logs will be customer visible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please look at the updated paragraph.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>

then all messages that match this pattern will be considered the same for throttling purposes, regardless of the actual
values of `<timestamp>` and `<mailfrom>`. This happens because the default logging module is based on `printf`-style
formatting, which allows variable content in log messages, and it is the formatting that determines message sameness.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) I'd say format string rather than formatting

Copy link
Contributor

@kkelley1 kkelley1 Nov 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Steeping back, though, do we have examples of some msgs that inspired this feature? There may be cases where a user really wants to see all unique msgs rather than skipping msgs with just the same format string. If the msgs that are typically the problem are all truly the same, that may be preferable. When debugging, the unique values are usually important.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the customer provided this example of a log message that had thousands of instances, each for a different message ID:

1751049883:OSA-00747 read [235] from server for 41/A5-36243-996EE586

that is a DEBUG-level message generated by this line:

ec_mod_debug(self, DDEBUG, "OSA-%05d read [%d] from server for %s\n", __LINE__, retval, ctx->msg_id);

In a debugging session the throttling could be temporarily disabled by setting debug_throttle_max_num_same_message to 0. Also, please remember that log messages that were classified as CRITICAL, ERROR, and WARNING due to their relevance in unexpected behaviors aren't subject to throttling at all.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
@dkoerichbird dkoerichbird requested a review from deepakpn November 7, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants