|
@@ -472,11 +472,6 @@ class ToTextBotAgent:
|
|
|
traceback.print_exc() # 打印完整的错误信息
|
|
|
return None
|
|
|
|
|
|
-class CustomLogWriter(pj.LogWriter):
|
|
|
-
|
|
|
- def write(self, msg):
|
|
|
- print(msg, flush=True) # 输出到控制台
|
|
|
-
|
|
|
@singleton_keys
|
|
|
class BotAgent:
|
|
|
|
|
@@ -501,7 +496,6 @@ class BotAgent:
|
|
|
ep_cfg.medConfig.noVad = True
|
|
|
ep_cfg.logConfig.level = 4
|
|
|
ep_cfg.logConfig.consoleLevel = 4
|
|
|
- ep_cfg.logConfig.writer = CustomLogWriter()
|
|
|
self.ep.libCreate()
|
|
|
self.ep.libInit(ep_cfg)
|
|
|
|