Skip to content

[validators] Improve validators logging - #1156

Merged
manugarg merged 4 commits into
mainfrom
validators_logs
Oct 28, 2025
Merged

manugarg merged 4 commits into
mainfrom
validators_logs

Conversation

@manugarg

@manugarg manugarg commented Oct 20, 2025 •

Copy link
Copy Markdown
Contributor
  • Use logger passed in the RunValidators function as it now contains the target attribute which makes it easy to identify targets when failure is due to validation failures.
  • [logger] Add a function to create a new logger with a set of attributes pre-populated. That will save us some repetition and make the above possible.
  • Make validators log "Error" on validation failure, instead of "Warning" as validation failure usually (always?) results in probe failures.

@manugarg
manugarg merged commit 584f341 into main Oct 28, 2025
@manugarg
manugarg deleted the validators_logs branch October 28, 2025 05:33
conallob pushed a commit to conallob/cloudprober that referenced this pull request Nov 20, 2025
- Use logger passed in the RunValidators function as it now contains the target attribute which makes it easy to identify targets when failure is due to validation failures.
- [logger] Add a function to create a new logger with a set of attributes pre-populated. That will save us some repetition and make the above possible.
- Make validators log "Error" on validation failure, instead of "Warning" as validation failure usually (always?) results in probe failures.
conallob pushed a commit to conallob/cloudprober that referenced this pull request Mar 11, 2026
- Use logger passed in the RunValidators function as it now contains the target attribute which makes it easy to identify targets when failure is due to validation failures.
- [logger] Add a function to create a new logger with a set of attributes pre-populated. That will save us some repetition and make the above possible.
- Make validators log "Error" on validation failure, instead of "Warning" as validation failure usually (always?) results in probe failures.
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