mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
net/ghttp: update error message for duplicated routes registering (#3603)
This commit is contained in:
@ -167,8 +167,9 @@ func (s *Server) doSetHandler(
|
||||
if duplicatedHandler != nil {
|
||||
s.Logger().Fatalf(
|
||||
ctx,
|
||||
`duplicated route registry "%s" at %s , already registered at %s`,
|
||||
pattern, handler.Source, duplicatedHandler.Source,
|
||||
"The duplicated route registry [%s] which is meaning [{hook}%%{method}:{path}@{domain}] at \n%s -> %s , which has already been registered at \n%s -> %s"+
|
||||
"\nYou can disable duplicate route detection by modifying the server.routeOverWrite configuration, but this will cause some routes to be overwritten",
|
||||
routerKey, handler.Source, handler.Name, duplicatedHandler.Source, duplicatedHandler.Name,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user