Skip to content

Commit 883a797

Browse files
author
Moritz Clasmeier
committed
Use new global logger
1 parent b9f3a1d commit 883a797

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

cmd/deploy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Examples:
246246
}
247247

248248
func runDeploy(cmd *cobra.Command, args []string) error {
249-
log := logger.New()
249+
log := globalLogger
250250
if !dryRun {
251251
if err := env.Initialize(log); err != nil {
252252
return err

cmd/env.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
"github.com/spf13/cobra"
88
"github.com/stackrox/roxie/internal/env"
9-
"github.com/stackrox/roxie/internal/logger"
109
)
1110

1211
func newEnvCmd() *cobra.Command {
@@ -22,7 +21,7 @@ func newEnvCmd() *cobra.Command {
2221
}
2322

2423
func runEnv(cmd *cobra.Command, args []string) error {
25-
log := logger.New()
24+
log := globalLogger
2625
if err := env.Initialize(log); err != nil {
2726
return err
2827
}

cmd/teardown.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/stackrox/roxie/internal/component"
1010
"github.com/stackrox/roxie/internal/deployer"
1111
"github.com/stackrox/roxie/internal/env"
12-
"github.com/stackrox/roxie/internal/logger"
1312
"github.com/stackrox/roxie/internal/manifest"
1413
)
1514

@@ -39,7 +38,7 @@ func newTeardownCmd(settings *deployer.Config) *cobra.Command {
3938
}
4039

4140
func runTeardown(cmd *cobra.Command, args []string) error {
42-
log := logger.New()
41+
log := globalLogger
4342
if err := env.Initialize(log); err != nil {
4443
return err
4544
}

0 commit comments

Comments
 (0)