mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
🐞 fix(log): bug
This commit is contained in:
commit
cebf2b3dd5
3 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
from config.logger import setup_logging
|
from config.logger import setup_logging
|
||||||
|
|
||||||
TAG = __name__
|
TAG = __name__
|
||||||
|
logger = setup_logging()
|
||||||
|
|
||||||
|
|
||||||
class AuthenticationError(Exception):
|
class AuthenticationError(Exception):
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ class ConnectionHandler:
|
||||||
|
|
||||||
# Load private configuration if device_id is provided
|
# Load private configuration if device_id is provided
|
||||||
bUsePrivateConfig = self.config.get("use_private_config", False)
|
bUsePrivateConfig = self.config.get("use_private_config", False)
|
||||||
self.info(f"bUsePrivateConfig: {bUsePrivateConfig}, device_id: {device_id}")
|
self.logger.bind(tag=TAG).info(f"bUsePrivateConfig: {bUsePrivateConfig}, device_id: {device_id}")
|
||||||
if bUsePrivateConfig and device_id:
|
if bUsePrivateConfig and device_id:
|
||||||
try:
|
try:
|
||||||
self.private_config = PrivateConfig(device_id, self.config, self.auth_code_gen)
|
self.private_config = PrivateConfig(device_id, self.config, self.auth_code_gen)
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ logger = setup_logging()
|
||||||
|
|
||||||
async def handleAudioMessage(conn, audio):
|
async def handleAudioMessage(conn, audio):
|
||||||
if not conn.asr_server_receive:
|
if not conn.asr_server_receive:
|
||||||
logger = setup_logging()
|
|
||||||
logger.bind(tag=TAG).debug(f"前期数据处理中,暂停接收")
|
logger.bind(tag=TAG).debug(f"前期数据处理中,暂停接收")
|
||||||
return
|
return
|
||||||
if conn.client_listen_mode == "auto":
|
if conn.client_listen_mode == "auto":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue