Skip to content

Commit

Permalink
fix(trait): remove logging warning
Browse files Browse the repository at this point in the history
Ref #4709
  • Loading branch information
squakez committed Sep 12, 2023
1 parent 8cef3f0 commit 2fc6f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/trait/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
)

const (
envVarQuarkusConsoleColor = "QUARKUS_CONSOLE_COLOR"
envVarQuarkusLogLevel = "QUARKUS_LOG_LEVEL"
envVarQuarkusLogConsoleColor = "QUARKUS_LOG_CONSOLE_COLOR"
envVarQuarkusLogConsoleFormat = "QUARKUS_LOG_CONSOLE_FORMAT"
// nolint: gosec // no sensitive credentials
envVarQuarkusLogConsoleJSON = "QUARKUS_LOG_CONSOLE_JSON"
Expand Down Expand Up @@ -73,7 +73,7 @@ func (l loggingTrait) Apply(e *Environment) error {
envvar.SetVal(&e.EnvVars, envVarQuarkusLogConsoleJSON, False)

if pointer.BoolDeref(l.Color, true) {
envvar.SetVal(&e.EnvVars, envVarQuarkusLogConsoleColor, True)
envvar.SetVal(&e.EnvVars, envVarQuarkusConsoleColor, True)
}
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/trait/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestEmptyLoggingTrait(t *testing.T) {
logFormatIsNotDefault := false

for _, e := range env.EnvVars {
if e.Name == envVarQuarkusLogConsoleColor {
if e.Name == envVarQuarkusConsoleColor {
if e.Value == "true" {
quarkusConsoleColor = true
}
Expand Down Expand Up @@ -174,7 +174,7 @@ func TestJsonLoggingTrait(t *testing.T) {
logFormatIsNotDefault := false

for _, e := range env.EnvVars {
if e.Name == envVarQuarkusLogConsoleColor {
if e.Name == envVarQuarkusConsoleColor {
if e.Value == "true" {
quarkusConsoleColor = true
}
Expand Down

0 comments on commit 2fc6f4d

Please sign in to comment.