Lowercase all log strings (#3173)

from #3161

---------

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
qwerty287
2024-01-11 19:17:07 +01:00
committed by GitHub
parent f56f9cb1c0
commit b0a2b1cf2d
23 changed files with 82 additions and 81 deletions

View File

@@ -121,15 +121,15 @@ func run(c *cli.Context) error {
agentConfigPersisted := abool.New()
ctx = utils.WithContextSigtermCallback(ctx, func() {
log.Info().Msg("Termination signal is received, shutting down")
log.Info().Msg("termination signal is received, shutting down")
sigterm.Set()
// Remove stateless agents from server
if agentConfigPersisted.IsNotSet() {
log.Debug().Msg("Unregistering agent from server")
log.Debug().Msg("unregistering agent from server")
err := client.UnregisterAgent(ctx)
if err != nil {
log.Err(err).Msg("Failed to unregister agent from server")
log.Err(err).Msg("failed to unregister agent from server")
}
}
})
@@ -142,7 +142,7 @@ func run(c *cli.Context) error {
}
if grpcServerVersion.GrpcVersion != agentRpc.ClientGrpcVersion {
err := errors.New("GRPC version mismatch")
log.Error().Err(err).Msgf("Server version %s does report grpc version %d but we only understand %d",
log.Error().Err(err).Msgf("server version %s does report grpc version %d but we only understand %d",
grpcServerVersion.ServerVersion,
grpcServerVersion.GrpcVersion,
agentRpc.ClientGrpcVersion)
@@ -199,18 +199,18 @@ func run(c *cli.Context) error {
Labels: labels,
}
log.Debug().Msgf("Agent registered with ID %d", agentConfig.AgentID)
log.Debug().Msgf("agent registered with ID %d", agentConfig.AgentID)
go func() {
for {
if sigterm.IsSet() {
log.Debug().Msg("Terminating health reporting")
log.Debug().Msg("terminating health reporting")
return
}
err := client.ReportHealth(ctx)
if err != nil {
log.Err(err).Msg("Failed to report health")
log.Err(err).Msg("failed to report health")
return
}
@@ -242,7 +242,7 @@ func run(c *cli.Context) error {
}
log.Info().Msgf(
"Starting Woodpecker agent with version '%s' and backend '%s' using platform '%s' running up to %d pipelines in parallel",
"starting Woodpecker agent with version '%s' and backend '%s' using platform '%s' running up to %d pipelines in parallel",
version.String(), backendEngine.Name(), engInfo.Platform, parallel)
wg.Wait()

View File

@@ -266,7 +266,7 @@ func run(c *cli.Context) error {
})
}
log.Info().Msgf("Starting Woodpecker server with version '%s'", version.String())
log.Info().Msgf("starting Woodpecker server with version '%s'", version.String())
return g.Wait()
}

View File

@@ -187,7 +187,7 @@ func setupBitbucket(c *cli.Context) (forge.Forge, error) {
Client: c.String("bitbucket-client"),
Secret: c.String("bitbucket-secret"),
}
log.Trace().Msgf("Forge (bitbucket) opts: %#v", opts)
log.Trace().Msgf("forge (bitbucket) opts: %#v", opts)
return bitbucket.New(opts)
}
@@ -206,7 +206,7 @@ func setupGitea(c *cli.Context) (forge.Forge, error) {
if len(opts.URL) == 0 {
return nil, fmt.Errorf("WOODPECKER_GITEA_URL must be set")
}
log.Trace().Msgf("Forge (gitea) opts: %#v", opts)
log.Trace().Msgf("forge (gitea) opts: %#v", opts)
return gitea.New(opts)
}
@@ -229,7 +229,7 @@ func setupGitHub(c *cli.Context) (forge.Forge, error) {
SkipVerify: c.Bool("github-skip-verify"),
MergeRef: c.Bool("github-merge-ref"),
}
log.Trace().Msgf("Forge (github) opts: %#v", opts)
log.Trace().Msgf("forge (github) opts: %#v", opts)
return github.New(opts)
}
@@ -307,7 +307,7 @@ func setupSignatureKeys(_store store.Store) (crypto.PrivateKey, crypto.PublicKey
if err != nil {
return nil, nil, fmt.Errorf("failed to store private key: %w", err)
}
log.Debug().Msg("Created private key")
log.Debug().Msg("created private key")
return privKey, privKey.Public(), nil
} else if err != nil {
return nil, nil, fmt.Errorf("failed to load private key: %w", err)