Log lines go to stdout and mix into show output

Open Beginner friendly
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

The issue points to the stdout writer in crates/bumpversion-cli/src/logging.rs. Read that file and find the logging output setup; then check any related logging tests or run the CLI example from the issue with BUMPVERSION_LOG_LEVEL=info. Done when logs appear on stderr and show current_version keeps only the version on stdout.

Written by the indexing model from the issue text.

Description

bug

Log lines go to stdout, so a log level of info or above mixes them into output meant for scripts:

$ BUMPVERSION_LOG_LEVEL=info bumpversion show current_version 2>/dev/null
1.0.0
 INFO bumpversion::common: done elapsed=9.75ms

VERSION=$(bumpversion show current_version) then captures the log line too, and a CI job that sets the log level for debugging breaks its release step. The writer is std::io::stdout in crates/bumpversion-cli/src/logging.rs.

Expected: logs go to stderr, and stdout carries only the command's output.

Dominant language
Rust
Stars
1
Forks
0
Avg merge
12m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from romnn/bumpversion

All issues in romnn/bumpversion

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.