From 78ae5a7fce05bd580a098b1cbb38c8466d382a55 Mon Sep 17 00:00:00 2001 From: zwimer Date: Tue, 29 Oct 2024 15:24:41 -0400 Subject: [PATCH] Print stats to stderr instead of stdout --- rpipe/__init__.py | 2 +- rpipe/client/client/client.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/rpipe/__init__.py b/rpipe/__init__.py index 4e9dfa0..ada0997 100644 --- a/rpipe/__init__.py +++ b/rpipe/__init__.py @@ -1 +1 @@ -__version__: str = "9.5.0" # Must be "..", all numbers +__version__: str = "9.5.1" # Must be "..", all numbers diff --git a/rpipe/client/client/client.py b/rpipe/client/client/client.py index 0ddf720..c108675 100644 --- a/rpipe/client/client/client.py +++ b/rpipe/client/client/client.py @@ -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 @@ -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)