Skip to content

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

Description

@RikaCelery

很多插件的处理方式为

if err != nil {
	ctx.SendChain(message.Text("ERROR: ", err))
	return
}

在没有堆栈信息的时候不好调试错误,希望改为如下形式

if err != nil {
	log.Error("<插件名称>",err)
        ctx.SendChain(message.Text("ERROR: ", err))
	return
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions