From b087871471fa1938bcee62fa4928789a7f873a91 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 26 Apr 2019 18:49:30 +0200 Subject: [PATCH] Change vol and fix critical output --- client_config.yml | 2 +- hugvey/client.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client_config.yml b/client_config.yml index b176ef3..66721a8 100644 --- a/client_config.yml +++ b/client_config.yml @@ -10,7 +10,7 @@ voice: input_mixer: 'Mic' output_mixer: 'PCM' input_volume: 90 - output_volume: 60 + output_volume: 40 file_address: "http://hugveycmd.local:8888" output_driver: pulseaudio diff --git a/hugvey/client.py b/hugvey/client.py index 408b2ba..2be30af 100644 --- a/hugvey/client.py +++ b/hugvey/client.py @@ -285,6 +285,7 @@ class CommandHandler(object): duration = cmd['duration'] if 'duration' in cmd else None self.playingMsgId = msgId + err = None if file is None and text is None: logger.critical("No file nor text given: {}".format(cmd)) else: @@ -325,9 +326,6 @@ class CommandHandler(object): returnCode = self.playPopen.returncode if self.playPopen else 0 logger.debug('finished') self.playPopen = None - logger.log(LOG_BS,out) - if len(err) > 0: - logger.critical(err) if t is not None: t.cancel()