1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-04-10 05:28:58 -04:00

Fixed --quiet option

This patch fixes the --quiet option for both send-message
and server commands.   Don't write anything to STDOUT.
This commit is contained in:
Hemna 2021-01-12 11:26:12 -05:00
parent 90c4c6c59d
commit f022a3e421

View File

@ -249,9 +249,9 @@ def send_message(
"""Send a message to a callsign via APRS_IS."""
global got_ack, got_response
click.echo("{} {} {} {}".format(aprs_login, aprs_password, tocallsign, command))
click.echo("Load config")
if not quiet:
click.echo("{} {} {} {}".format(aprs_login, aprs_password, tocallsign, command))
click.echo("Load config")
config = utils.parse_config(config_file)
if not aprs_login:
click.echo("Must set --aprs_login or APRS_LOGIN")
@ -382,7 +382,8 @@ def server(loglevel, quiet, disable_validation, config_file, flush):
event = threading.Event()
signal.signal(signal.SIGINT, signal_handler)
click.echo("Load config")
if not quiet:
click.echo("Load config")
config = utils.parse_config(config_file)
# Force setting the config to the modules that need it