Skip to content

Reduce spammy reconciler messages.#37101

Merged
mdwn merged 1 commit intomasterfrom
mike.wilson/reduce-reconciler-already-registered-to-trace
Jan 24, 2024
Merged

Reduce spammy reconciler messages.#37101
mdwn merged 1 commit intomasterfrom
mike.wilson/reduce-reconciler-already-registered-to-trace

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Jan 23, 2024

The reconciler will now log the "already registered" messages at the trace level instead of at debug, which should reduce how spammy this log entry is.

changelog: Reduced logging level for services that reconcile resources.

The reconciler will now log the "already registered" messages at the trace
level instead of at debug, which should reduce how spammy this log entry
is.
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

type Reconciler[T Reconciled] struct {
cfg ReconcilerConfig[T]
log logrus.FieldLogger
log *logrus.Entry
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Another option would be to use logrus.Ext1FieldLogger which is an extension of FieldLogger that adds the trace methods.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought about that, but the comment for it says:

// Ext1FieldLogger (the first extension to FieldLogger) is superfluous, it is
// here for consistancy. Do not use. Use Logger or Entry instead.

So I elected to use Entry here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we just remove the log entry entirely? I can't really think of any case when we will need to know this.

It's pretty standard that a reconciler sees existing resources.

@mdwn mdwn enabled auto-merge January 24, 2024 02:11
@mdwn mdwn added this pull request to the merge queue Jan 24, 2024
Merged via the queue into master with commit 0dacf8b Jan 24, 2024
@mdwn mdwn deleted the mike.wilson/reduce-reconciler-already-registered-to-trace branch January 24, 2024 02:42
@public-teleport-github-review-bot
Copy link
Copy Markdown

@mdwn See the table below for backport results.

Branch Result
branch/v13 Create PR
branch/v14 Create PR
branch/v15 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants