mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
reduce default verbosity
This commit is contained in:
parent
a92f09faf6
commit
39c95681f3
3 changed files with 7 additions and 5 deletions
|
|
@ -527,7 +527,7 @@ different commits. This is mitigates a rare corner case where
|
|||
|
||||
|
||||
```shell
|
||||
$ pycalver show
|
||||
$ pycalver show --verbose
|
||||
INFO - fetching tags from remote (to turn off use: -n / --no-fetch)
|
||||
Current Version: v201812.0005-beta
|
||||
PEP440 Version : 201812.5b0
|
||||
|
|
@ -547,6 +547,7 @@ To increment and publish a new version, you can use the
|
|||
5. *Tag* the new commit.
|
||||
6. *Push* the new commit and tag.
|
||||
|
||||
|
||||
```
|
||||
$ pycalver bump --dry
|
||||
--- setup.cfg
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ def _init_logging(verbose: int = 0) -> None:
|
|||
log_level = logging.DEBUG
|
||||
elif verbose == 1:
|
||||
log_format = "%(levelname)-7s - %(message)s"
|
||||
log_level = logging.DEBUG
|
||||
log_level = logging.INFO
|
||||
else:
|
||||
log_format = "%(levelname)-7s - %(message)s"
|
||||
log_level = logging.INFO
|
||||
|
|
|
|||
|
|
@ -62,9 +62,10 @@ class VCS:
|
|||
|
||||
def __call__(self, cmd_name: str, env=None, **kwargs: str) -> str:
|
||||
"""Invoke subcommand and return output."""
|
||||
cmd_str = self.subcommands[cmd_name]
|
||||
cmd_parts = cmd_str.format(**kwargs).split()
|
||||
output_data = sp.check_output(cmd_parts, env=env, stderr=sp.STDOUT)
|
||||
cmd_tmpl = self.subcommands[cmd_name]
|
||||
cmd_str = cmd_tmpl.format(**kwargs)
|
||||
log.debug(cmd_str)
|
||||
output_data = sp.check_output(cmd_str.split(), env=env, stderr=sp.STDOUT)
|
||||
|
||||
# TODO (mb 2018-11-15): Detect encoding of output?
|
||||
_encoding = "utf-8"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue