GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace logging with logger for consistency by wiltonsr · Pull Request #481 · robusta-dev/krr

Conversation

@wiltonsr

@wiltonsr wiltonsr commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@wiltonsr
Replace logging with logger for consistency
ff57a6f
@CLAassistant

CLAassistant commented Oct 20, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 20, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Walkthrough

The Prometheus metrics service module replaces three logging calls using the standard logging module with a module-level logger instance. Changes affect OpenShift token loading messages without altering control flow or error handling logic.

Changes

Cohort / File(s) Summary
Logging refactoring
robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py
Replaced logging.info() and logging.warning() calls with module-level logger instance for token load attempts, successful token loads, and missing token warnings.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "Replace logging with logger for consistency" accurately and specifically describes the main change in the changeset. The modification involves refactoring logging calls in a Prometheus metrics service file to use a module-level logger instance instead of the global logging module, and the title clearly captures this intent. The title is concise, specific enough for a teammate to understand the primary change, and directly related to the actual implementation modifications.
Description Check ✅ Passed No pull request description was provided by the author beyond the title. While the description field is empty and therefore does not explicitly relate to the changeset, it is also not "completely off-topic" or misleading in any way. Given the lenient nature of this check, an absent description that does not make any competing or contradictory claims about the changes meets the basic threshold of not being unrelated to the changeset.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between df17896 and ff57a6f.

📒 Files selected for processing (1)
  • robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py (1)
robusta_krr/core/integrations/openshift/token.py (1)
  • load_token (9-17)
🔇 Additional comments (1)
robusta_krr/core/integrations/prometheus/metrics_service/prometheus_metrics_service.py (1)

79-86: LGTM! Excellent consistency improvement.

These changes replace the root logging module calls with the module-level logger instance, making the logging consistent throughout the file. All other logging calls in this file already use logger, so this brings these three lines into alignment with established patterns. Using a named logger instead of the root logger is a Python logging best practice.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

arikalon1
arikalon1 approved these changes Nov 20, 2025
View reviewed changes

@arikalon1 arikalon1 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for the PR @wiltonsr

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@arikalon1
arikalon1 merged commit c3e1c48 into robusta-dev:main Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@arikalon1 arikalon1 arikalon1 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@wiltonsr @CLAassistant @arikalon1
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.