Skip to content

[WIP] Address feedback from review on PR #21 for 070 changes#24

Merged
alvagante merged 2 commits into070from
copilot/sub-pr-21-another-one
Feb 23, 2026
Merged

[WIP] Address feedback from review on PR #21 for 070 changes#24
alvagante merged 2 commits into070from
copilot/sub-pr-21-another-one

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 23, 2026

  • Extend log() helper in PuppetRunHistoryService to support "debug" level via LoggerService.debug()
  • Downgrade Date range: ... log (line 131) from info to debug
  • Downgrade Converted to ... days of history log (line 144) from info to debug

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: alvagante <283804+alvagante@users.noreply.github.com>
@alvagante alvagante marked this pull request as ready for review February 23, 2026 21:45
Copilot AI review requested due to automatic review settings February 23, 2026 21:45
@alvagante alvagante merged commit 5801f31 into 070 Feb 23, 2026
1 check passed
@alvagante alvagante deleted the copilot/sub-pr-21-another-one branch February 23, 2026 21:45
Copilot AI requested a review from alvagante February 23, 2026 21:45
Copilot stopped work on behalf of alvagante due to an error February 23, 2026 21:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses feedback from PR #21 by implementing support for debug-level logging in PuppetRunHistoryService and downgrading two verbose informational log messages to debug level. The changes improve logging granularity by making detailed operational logs (date ranges and conversion counts) only appear when debug logging is enabled, reducing noise at the default info level.

Changes:

  • Extended the private log() helper method to support "debug" log level
  • Downgraded two verbose log messages from info to debug level (date range and history conversion count)

* @param level - Log level (default: info)
*/
private log(message: string, level: "info" | "warn" | "error" = "info"): void {
private log(message: string, level: "debug" | "info" | "warn" | "error" = "info"): void {
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

The order of log levels in the type union should match the established hierarchy pattern used in LoggerService (error > warn > info > debug). Consider reordering to: level: "error" | "warn" | "info" | "debug" = "info" for consistency with the codebase convention.

Suggested change
private log(message: string, level: "debug" | "info" | "warn" | "error" = "info"): void {
private log(message: string, level: "error" | "warn" | "info" | "debug" = "info"): void {

Copilot uses AI. Check for mistakes.
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.

3 participants