From 157e460945728f5082eadbad3f9b93aa5f0b9e00 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Wed, 4 Nov 2020 16:00:09 +0100 Subject: [PATCH] normalize log messages to use lowercase --- accounts/pkg/command/root.go | 2 +- glauth/pkg/server/glauth/server.go | 4 ++-- ocis-pkg/service/debug/service.go | 2 +- ocis-pkg/service/grpc/service.go | 2 +- ocis-pkg/service/http/service.go | 2 +- proxy/pkg/command/server.go | 2 +- storage/pkg/service/external/external.go | 2 +- store/pkg/command/root.go | 2 +- webdav/pkg/command/root.go | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/accounts/pkg/command/root.go b/accounts/pkg/command/root.go index 63f9803889..4c8bda1c52 100644 --- a/accounts/pkg/command/root.go +++ b/accounts/pkg/command/root.go @@ -98,7 +98,7 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error { switch err.(type) { case viper.ConfigFileNotFoundError: logger.Info(). - Msg("Continue without config") + Msg("no config found on preconfigured location") case viper.UnsupportedConfigError: logger.Fatal(). Err(err). diff --git a/glauth/pkg/server/glauth/server.go b/glauth/pkg/server/glauth/server.go index 3d9881daec..6cd90d8ffc 100644 --- a/glauth/pkg/server/glauth/server.go +++ b/glauth/pkg/server/glauth/server.go @@ -133,13 +133,13 @@ func Server(opts ...Option) (*LdapSvc, error) { // ListenAndServe listens on the TCP network address s.c.LDAP.Listen func (s *LdapSvc) ListenAndServe() error { - s.log.V(3).Info("LDAP server listening", "address", s.ldap.Listen) + s.log.V(3).Info("ldap server listening", "address", s.ldap.Listen) return s.l.ListenAndServe(s.ldap.Listen) } // ListenAndServeTLS listens on the TCP network address s.c.LDAPS.Listen func (s *LdapSvc) ListenAndServeTLS() error { - s.log.V(3).Info("LDAPS server listening", "address", s.ldaps.Listen) + s.log.V(3).Info("ldaps server listening", "address", s.ldaps.Listen) return s.l.ListenAndServeTLS( s.ldaps.Listen, s.ldaps.Cert, diff --git a/ocis-pkg/service/debug/service.go b/ocis-pkg/service/debug/service.go index 937ce8cbab..f523ed356e 100644 --- a/ocis-pkg/service/debug/service.go +++ b/ocis-pkg/service/debug/service.go @@ -17,7 +17,7 @@ func NewService(opts ...Option) *http.Server { dopts.Logger.Info(). Str("transport", "debug"). Str("addr", dopts.Address). - Msg("Starting server") + Msg("starting server") mux := http.NewServeMux() diff --git a/ocis-pkg/service/grpc/service.go b/ocis-pkg/service/grpc/service.go index ed00090bf1..c50039fccd 100644 --- a/ocis-pkg/service/grpc/service.go +++ b/ocis-pkg/service/grpc/service.go @@ -21,7 +21,7 @@ func NewService(opts ...Option) Service { sopts.Logger.Info(). Str("transport", "grpc"). Str("addr", sopts.Address). - Msg("Starting server") + Msg("starting server") mopts := []micro.Option{ micro.Name( diff --git a/ocis-pkg/service/http/service.go b/ocis-pkg/service/http/service.go index a5f24ecfb2..f05cf45be4 100644 --- a/ocis-pkg/service/http/service.go +++ b/ocis-pkg/service/http/service.go @@ -19,7 +19,7 @@ func NewService(opts ...Option) Service { sopts.Logger.Info(). Str("transport", transport(sopts.TLSConfig)). Str("addr", sopts.Address). - Msg("Starting server") + Msg("starting server") wopts := []web.Option{ web.Name( diff --git a/proxy/pkg/command/server.go b/proxy/pkg/command/server.go index 7acf2b7569..11232a3f06 100644 --- a/proxy/pkg/command/server.go +++ b/proxy/pkg/command/server.go @@ -281,7 +281,7 @@ func loadMiddlewares(ctx context.Context, l log.Logger, cfg *config.Config) alic ) if cfg.OIDC.Issuer != "" { - l.Info().Msg("Loading OIDC-Middleware") + l.Info().Msg("loading OIDC middleware") l.Debug().Interface("oidc_config", cfg.OIDC).Msg("OIDC-Config") var oidcHTTPClient = &http.Client{ diff --git a/storage/pkg/service/external/external.go b/storage/pkg/service/external/external.go index f325e57e19..9238d3b1b5 100644 --- a/storage/pkg/service/external/external.go +++ b/storage/pkg/service/external/external.go @@ -33,7 +33,7 @@ func RegisterGRPCEndpoint(ctx context.Context, serviceID, uuid, addr string, log rOpts := []registry.RegisterOption{registry.RegisterTTL(time.Minute)} - logger.Info().Msgf("Registering external service %v@%v", node.Id, node.Address) + logger.Info().Msgf("registering external service %v@%v", node.Id, node.Address) if err := registry.Register(service, rOpts...); err != nil { logger.Fatal().Err(err).Msgf("Registration error for external service %v", serviceID) diff --git a/store/pkg/command/root.go b/store/pkg/command/root.go index 83d1e40a6d..99f5bbbd40 100644 --- a/store/pkg/command/root.go +++ b/store/pkg/command/root.go @@ -88,7 +88,7 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error { switch err.(type) { case viper.ConfigFileNotFoundError: logger.Info(). - Msg("Continue without config") + Msg("no config found on preconfigured location") case viper.UnsupportedConfigError: logger.Fatal(). Err(err). diff --git a/webdav/pkg/command/root.go b/webdav/pkg/command/root.go index 1f7284d928..c24cc3e865 100644 --- a/webdav/pkg/command/root.go +++ b/webdav/pkg/command/root.go @@ -87,7 +87,7 @@ func ParseConfig(c *cli.Context, cfg *config.Config) error { switch err.(type) { case viper.ConfigFileNotFoundError: logger.Info(). - Msg("Continue without config") + Msg("no config found on preconfigured location") case viper.UnsupportedConfigError: logger.Fatal(). Err(err).