Notify user about --prefix-routes when using --basepath

pull/10616/head
Jared Scheib 2017-05-03 12:14:44 -07:00 committed by Tim Raymond
parent 172f976ca6
commit 1e2e3c1362
1 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,11 @@ func (s *Server) Serve(ctx context.Context) error {
}
service := openService(ctx, s.BoltPath, layoutBuilder, sourcesBuilder, kapacitorBuilder, logger, s.useAuth())
basepath = s.Basepath
if basepath != "" && s.PrefixRoutes == false {
logger.
WithField("component", "server").
Info("Note: you may want to use --prefix-routes with --basepath. Try `./chronograf --help` for more info.")
}
providerFuncs := []func(func(oauth2.Provider, oauth2.Mux)){}