浏览代码

chore: log optimization

master
zhayujie 9 个月前
父节点
当前提交
db2ee802ca
共有 4 个文件被更改,包括 6 次插入3 次删除
  1. +0
    -1
      channel/chat_channel.py
  2. +4
    -0
      common/linkai_client.py
  3. +1
    -1
      requirements.txt
  4. +1
    -1
      voice/audio_convert.py

+ 0
- 1
channel/chat_channel.py 查看文件

@@ -4,7 +4,6 @@ import threading
import time
from asyncio import CancelledError
from concurrent.futures import Future, ThreadPoolExecutor
from concurrent import futures

from bridge.context import *
from bridge.reply import *


+ 4
- 0
common/linkai_client.py 查看文件

@@ -4,6 +4,7 @@ from common.log import logger
from linkai import LinkAIClient, PushMsg
from config import conf, pconf, plugin_config, available_setting
from plugins import PluginManager
import time


chat_client: LinkAIClient
@@ -62,6 +63,9 @@ def start(channel):
host="link-ai.chat", channel=channel)
chat_client.config = _build_config()
chat_client.start()
time.sleep(1.5)
if chat_client.client_id:
logger.info("[LinkAI] 可前往控制台进行线上登录和配置:https://link-ai.tech/console/clients")


def _build_config():


+ 1
- 1
requirements.txt 查看文件

@@ -7,4 +7,4 @@ chardet>=5.1.0
Pillow
pre-commit
web.py
linkai>=0.0.3.7
linkai>=0.0.5.0

+ 1
- 1
voice/audio_convert.py 查看文件

@@ -6,7 +6,7 @@ from common.log import logger
try:
import pysilk
except ImportError:
logger.warn("import pysilk failed, wechaty voice message will not be supported.")
logger.debug("import pysilk failed, wechaty voice message will not be supported.")

from pydub import AudioSegment



正在加载...
取消
保存