Skip to content

Commit

Permalink
Print stats to stderr instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
zwimer committed Oct 29, 2024
1 parent 012b47d commit 78ae5a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpipe/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = "9.5.0" # Must be "<major>.<minor>.<patch>", all numbers
__version__: str = "9.5.1" # Must be "<major>.<minor>.<patch>", all numbers
5 changes: 3 additions & 2 deletions rpipe/client/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import TYPE_CHECKING
from logging import getLogger
from json import dumps
from sys import stderr

from ...shared import TRACE, QueryEC, Version, version
from .errors import UsageError, VersionError
Expand Down Expand Up @@ -114,6 +115,6 @@ def rpipe(conf: Config, mode: Mode, config_file: Path) -> None:
return
# Print results
if rv.checksum is not None:
print(f"Blake2s: {rv.checksum.hexdigest()}")
print(f"Blake2s: {rv.checksum.hexdigest()}", file=stderr)
if rv.total is not None:
print(f"Total bytes {'sent' if mode.write else 'received'}: {rv.total}")
print(f"Total bytes {'sent' if mode.write else 'received'}: {rv.total}", file=stderr)

0 comments on commit 78ae5a7

Please sign in to comment.