FloatTech / FloatTech/ZeroBot-Plugin

[Feat] 在所有出错的地方打印error日志

Open
#1,062 2 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Go
Stars
2.6k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

很多插件的处理方式为
```go
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return
}
```
在没有堆栈信息的时候不好调试错误,希望改为如下形式
```go
if err != nil {
log.Error("<插件名称>",err)
ctx.SendChain(message.Text("ERROR: ", err))
return
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the repository for plugin error branches matching the issue's if err != nil pattern, then inspect how log.Error is used elsewhere. The requested result is for relevant error paths to log the plugin name and error while preserving the existing user-facing ERROR message; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.