跳到主要内容

日志监控

  • 使用 docker 包来监听 napcat 容器
  • 必须使用 asyncio.to_threadloop.call_soon_threadsafe,否则 DatabaseHandler 写入的日志队列无法触发 log_writer 中的 log_queue.get() 方法
  • 使用 since=start_time 防止运行时捕获到 napcat 多次重启前的日志与重复日志