Skip to content

Commit

Permalink
fix logs (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 6, 2023
1 parent 13ed6fc commit 0569fd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from hivemind_bus_client import HiveMessageBusClient
from ovos_audio.service import PlaybackService
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import init_service_logger, LOG
from hivemind_voice_satellite import VoiceClient


Expand All @@ -12,9 +13,11 @@
@click.option("--port", help="HiveMind port number", type=int, default=5678)
@click.option("--selfsigned", help="accept self signed certificates", is_flag=True)
def connect(host, key, password, port, selfsigned):
init_service_logger("HiveMind-voice-sat")

if not host.startswith("ws"):
print("Invalid host, please specify a protocol")
print(f"ws://{host} or wss://{host}")
LOG.error("Invalid host, please specify a protocol")
LOG.error(f"ws://{host} or wss://{host}")
exit(1)

# connect to hivemind
Expand Down

0 comments on commit 0569fd8

Please sign in to comment.