From 8499921d67794e5eaec3d33546470c89d5991fbd Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 21 Dec 2021 22:18:06 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_chat/data.go | 2 ++ utils/file/updater.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin_chat/data.go b/plugin_chat/data.go index 693364a0..1a45fe40 100644 --- a/plugin_chat/data.go +++ b/plugin_chat/data.go @@ -6,6 +6,7 @@ import ( "github.com/FloatTech/ZeroBot-Plugin/utils/file" "github.com/FloatTech/ZeroBot-Plugin/utils/process" + "github.com/sirupsen/logrus" ) type kimo = map[string]*[]string @@ -22,6 +23,7 @@ func initChatList(postinit func()) { for k := range kimomap { chatList = append(chatList, k) } + logrus.Infoln("[chat]加载", len(chatList), "条kimoi") postinit() }() } diff --git a/utils/file/updater.go b/utils/file/updater.go index 7f8c87d1..0d0d7881 100644 --- a/utils/file/updater.go +++ b/utils/file/updater.go @@ -38,7 +38,7 @@ func GetLazyData(path string, isReturnDataBytes, isDataMustEqual bool) ([]byte, } else { ms, err = registry.Get(path) if err != nil || len(ms) != 16 { - logrus.Errorln("[file]获取md5失败,请自行确保下载文件 %s 的正确性:", path, err) + logrus.Errorln("[file]获取md5失败,请自行确保下载文件", path, "的正确性:", err) } else { filemd5 = (*[16]byte)(*(*unsafe.Pointer)(unsafe.Pointer(&ms))) logrus.Infoln("[file]从验证服务器获得文件md5:", hex.EncodeToString(filemd5[:]))