Skip to content

Commit

Permalink
Update verbosity from 1->4
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Anderson <[email protected]>
Signed-off-by: Evan Anderson <[email protected]>
  • Loading branch information
evankanderson committed Oct 26, 2024
1 parent f7536da commit 596ccb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/gatewayapi/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (r *Runner) subscribeAndTranslate(ctx context.Context) {
// Publish the IRs.
// Also validate the ir before sending it.
for key, val := range result.InfraIR {
if vlog := r.Logger.V(1); vlog.Enabled() {
if vlog := r.Logger.V(4); vlog.Enabled() {
vlog.WithValues("infra-ir", key).Info(val.JSONString())
}

Check warning on line 178 in internal/gatewayapi/runner/runner.go

View check run for this annotation

Codecov / codecov/patch

internal/gatewayapi/runner/runner.go#L176-L178

Added lines #L176 - L178 were not covered by tests
if err := val.Validate(); err != nil {
Expand All @@ -186,7 +186,7 @@ func (r *Runner) subscribeAndTranslate(ctx context.Context) {
}

for key, val := range result.XdsIR {
if vlog := r.Logger.V(1); vlog.Enabled() {
if vlog := r.Logger.V(4); vlog.Enabled() {
vlog.WithValues("xds-ir", key).Info(val.JSONString())
}

Check warning on line 191 in internal/gatewayapi/runner/runner.go

View check run for this annotation

Codecov / codecov/patch

internal/gatewayapi/runner/runner.go#L189-L191

Added lines #L189 - L191 were not covered by tests
if err := val.Validate(); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion release-notes/current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ new features: |
# Fixes for bugs identified in previous versions.
bug fixes: |
Only log endpoint configuration in verbose logging mode (`-v 1` or higher)
Only log endpoint configuration in verbose logging mode (`-v 4` or higher)
# Enhancements that improve performance.
performance improvements: |
Expand Down

0 comments on commit 596ccb6

Please sign in to comment.