Skip to content

the route not found 日志报错 #189

@cjl2029

Description

@cjl2029

Describe the bug
// RouteNotFound 未找到相关路由
func RouteNotFound(c *gin.Context) {
c.String(http.StatusNotFound, "the route not found")
}
不是json打印日志的时候解析报错

To Reproduce
Steps to reproduce the behavior:
1.修改RouteNotFound方法

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions