mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-01-07 13:55:00 +08:00
✏️ 调整 log 格式
This commit is contained in:
parent
e8fa6b8b07
commit
96aefc3938
@ -47,7 +47,7 @@ func init() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
log.Printf("[Reborn] 读取%d个国家/地区", len(area))
|
log.Printf("[Reborn]读取%d个国家/地区", len(area))
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ func load(area *rate) error {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
if resp.ContentLength > 0 {
|
if resp.ContentLength > 0 {
|
||||||
log.Printf("[Reborn] 从镜像下载国家和地区%d字节...", resp.ContentLength)
|
log.Printf("[Reborn]从镜像下载国家和地区%d字节...", resp.ContentLength)
|
||||||
data, err := io.ReadAll(resp.Body)
|
data, err := io.ReadAll(resp.Body)
|
||||||
if err == nil && len(data) > 0 {
|
if err == nil && len(data) > 0 {
|
||||||
_, _ = f.Write(data)
|
_, _ = f.Write(data)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user