Skip to content

fix(tasks): remove debug print statements causing log spam#348

Merged
MoralCode merged 1 commit into
chaoss:mainfrom
Suraj-H675:fix/remove-debug-print-statements
May 27, 2026
Merged

fix(tasks): remove debug print statements causing log spam#348
MoralCode merged 1 commit into
chaoss:mainfrom
Suraj-H675:fix/remove-debug-print-statements

Conversation

@Suraj-H675

Copy link
Copy Markdown

What problem does this solve?

Removes two debug print(libdays) statements that were outputting bare numbers to stdout during dependency libyear analysis, causing log spam reported in issue #289.

What changed and why?

Removed print(libdays) from two locations:

  • collectoss/tasks/git/dependency_libyear_tasks/libyear_util/util.py
  • collectoss/tasks/git/dependency_libyear_tasks/libyear_util/pypi_libyear_util.py

These debug prints were left in the codebase and caused the log noise: 0, 497, 932, etc. appearing in task logs.

How was this tested?

  • Searched codebase for similar patterns — no other occurrences found
  • Verified the function still correctly calculates and returns libyear after the change

Checklist

  • Read CONTRIBUTING.md
  • Changes match project coding style
  • No test changes needed (debug print removal only)
  • CI tools: pylint check will run

This contribution was created with AI assistance, with human review and approval at each step.

These print(libdays) statements were outputting bare numbers to stdout
during dependency libyear analysis, creating log spam in task logs.

Removed from both util.py and pypi_libyear_util.py — addressed the root
cause of issue #289.

Signed-off-by: Suraj <surajh6705@gmail.com>
@Suraj-H675 Suraj-H675 marked this pull request as ready for review May 27, 2026 03:58
@Suraj-H675 Suraj-H675 requested a review from MoralCode as a code owner May 27, 2026 03:58

@MoralCode MoralCode left a comment

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.

LGTM!

@MoralCode MoralCode merged commit 546307c into chaoss:main May 27, 2026
15 checks passed
@MoralCode MoralCode linked an issue May 27, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Where are the printed random numbers coming from?

2 participants