diff --git a/hugvey/client.py b/hugvey/client.py index b6bd27a..6d928e9 100644 --- a/hugvey/client.py +++ b/hugvey/client.py @@ -159,7 +159,7 @@ class VoiceServer(object): try: if self.hugvey.cmd_server.muteMic: - logger.debug('block recording {}' .format( + logger.log(LOG_BS, 'block recording {}' .format( self.hugvey.cmd_server.muteMic)) # multiply by 0 to disable audio recording while playback diff --git a/hugvey/panopticon.py b/hugvey/panopticon.py index 1edf343..9e358bd 100644 --- a/hugvey/panopticon.py +++ b/hugvey/panopticon.py @@ -115,6 +115,10 @@ def getWebSocketHandler(central_command): @classmethod def write_to_clients(wsHandlerClass, msg): + if msg is None: + logger.critical("Tried to send 'none' to Panopticon") + return + for client in wsHandlerClass.connections: client.write_message(msg) diff --git a/hugvey_client.py b/hugvey_client.py index ead8c63..b485114 100644 --- a/hugvey_client.py +++ b/hugvey_client.py @@ -48,6 +48,7 @@ if __name__ == '__main__': host = urlparse(hv.config['events']['cmd_address']).hostname logger.info("Connect to logger on {}".format(host)) socket_handler = logging.handlers.SocketHandler(host, 19996) # default listening address + socket_handler.setLevel(logging.DEBUG) # don't send BS messages logger.addHandler(socket_handler); hv.start() diff --git a/www/index.html b/www/index.html index 0e49f71..6385faf 100644 --- a/www/index.html +++ b/www/index.html @@ -40,7 +40,7 @@
{{ hv.status }}
-