|
@@ -473,12 +473,9 @@ class ToTextBotAgent:
|
|
|
return None
|
|
|
|
|
|
class CustomLogWriter(pj.LogWriter):
|
|
|
- def __init__(self, logger):
|
|
|
- self.logger = logger
|
|
|
|
|
|
def write(self, msg):
|
|
|
- print(f"Custom Log: {msg}") # 输出到控制台
|
|
|
- self.logger.info(msg)
|
|
|
+ print(msg, flush=True) # 输出到控制台
|
|
|
|
|
|
@singleton_keys
|
|
|
class BotAgent:
|