[Update] Loggerで出力する際のタグ変更 [SEND] [RECEIVE] -> [SENT] [RECEIVED]
This commit is contained in:
6
main.py
6
main.py
@@ -40,7 +40,7 @@ def sendMicMessage(message):
|
|||||||
if config.ENABLE_LOGGER is True:
|
if config.ENABLE_LOGGER is True:
|
||||||
if len(translation) > 0:
|
if len(translation) > 0:
|
||||||
translation = f" ({translation})"
|
translation = f" ({translation})"
|
||||||
model.logger.info(f"[SEND] {message}{translation}")
|
model.logger.info(f"[SENT] {message}{translation}")
|
||||||
|
|
||||||
def startTranscriptionSendMessage():
|
def startTranscriptionSendMessage():
|
||||||
model.startMicTranscript(sendMicMessage)
|
model.startMicTranscript(sendMicMessage)
|
||||||
@@ -86,7 +86,7 @@ def receiveSpeakerMessage(message):
|
|||||||
if config.ENABLE_LOGGER is True:
|
if config.ENABLE_LOGGER is True:
|
||||||
if len(translation) > 0:
|
if len(translation) > 0:
|
||||||
translation = f" ({translation})"
|
translation = f" ({translation})"
|
||||||
model.logger.info(f"[RECEIVE] {message}{translation}")
|
model.logger.info(f"[RECEIVED] {message}{translation}")
|
||||||
|
|
||||||
def startTranscriptionReceiveMessage():
|
def startTranscriptionReceiveMessage():
|
||||||
model.startSpeakerTranscript(receiveSpeakerMessage)
|
model.startSpeakerTranscript(receiveSpeakerMessage)
|
||||||
@@ -140,7 +140,7 @@ def sendChatMessage(message):
|
|||||||
if config.ENABLE_LOGGER is True:
|
if config.ENABLE_LOGGER is True:
|
||||||
if len(translation) > 0:
|
if len(translation) > 0:
|
||||||
translation = f" ({translation})"
|
translation = f" ({translation})"
|
||||||
model.logger.info(f"[SEND] {message}{translation}")
|
model.logger.info(f"[SENT] {message}{translation}")
|
||||||
|
|
||||||
# delete message in entry message box
|
# delete message in entry message box
|
||||||
if config.ENABLE_AUTO_CLEAR_MESSAGE_BOX is True:
|
if config.ENABLE_AUTO_CLEAR_MESSAGE_BOX is True:
|
||||||
|
|||||||
Reference in New Issue
Block a user