s+: fix debug statements going to stdout

This commit is contained in:
Mark Joshwel 2023-09-05 05:05:30 +00:00 committed by GitHub
parent 8ccee82f26
commit 14193a705e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)