diff --git a/hugvey/speech/google.py b/hugvey/speech/google.py index 44bdfb8..cfa718f 100644 --- a/hugvey/speech/google.py +++ b/hugvey/speech/google.py @@ -167,7 +167,7 @@ class GoogleVoiceClient(object): # Display the transcription of the top alternative. transcript = result.alternatives[0].transcript - # self.logger.debug("Text: ".format(transcript)) +# self.logger.debug("Text: ".format(transcript)) if not result.is_final: self.logger.debug(f"Text: {transcript}") diff --git a/hugvey_server.py b/hugvey_server.py index 8de304d..2f4fe16 100644 --- a/hugvey_server.py +++ b/hugvey_server.py @@ -41,6 +41,7 @@ if __name__ == '__main__': rootLogger = logging.getLogger() logger = logging.getLogger("hugvey") + logger.setLevel(logging.DEBUG) logFileHandler = logging.handlers.RotatingFileHandler( './state/server.log', @@ -57,7 +58,7 @@ if __name__ == '__main__': # logger.setLevel(1) # to send all records to cutelog socket_handler = logging.handlers.SocketHandler('127.0.0.1', 19996) # default listening address - socket_handler.setLevel(logging.DEBUG) # OR should it be DEBUG? chaned to see difference in logging speed + socket_handler.setLevel(logging.INFO) # In DEBUG the system cnnot keeop up and items start to move together rootLogger.addHandler(socket_handler) logger.info("Start server")