From 14193a705ece5847e279376db8b28457f42b5f87 Mon Sep 17 00:00:00 2001 From: Mark Joshwel <89562141+markjoshwel@users.noreply.github.com> Date: Tue, 5 Sep 2023 05:05:30 +0000 Subject: [PATCH] s+: fix debug statements going to stdout --- surplus/surplus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surplus/surplus.py b/surplus/surplus.py index b1e8606..156cc74 100644 --- a/surplus/surplus.py +++ b/surplus/surplus.py @@ -693,7 +693,7 @@ def parse_query(behaviour: Behaviour) -> Result[Query]: split_query = behaviour.query if behaviour.debug: - print(f"debug: {split_query=}\ndebug: {original_query=}", behaviour.stderr) + print(f"debug: {split_query=}\ndebug: {original_query=}", file=behaviour.stderr) # not a plus/local code, try to match for latlong or string query match split_query: @@ -1102,7 +1102,7 @@ def cli() -> int: query = parse_query(behaviour=behaviour) if behaviour.debug: - print(f"debug: cli: {query=}") + print(f"debug: cli: {query=}", file=behaviour.stderr) if not query: print(f"error: {query.cry(string=not behaviour.debug)}", file=behaviour.stderr)