diff --git a/net/ghttp/ghttp_server_router.go b/net/ghttp/ghttp_server_router.go index fbba732b4..dd4e6640d 100644 --- a/net/ghttp/ghttp_server_router.go +++ b/net/ghttp/ghttp_server_router.go @@ -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, ) } }